1 /* 2 * Copyright 2010, Haiku, Inc. 3 * Distributed under the terms of the MIT Licence. 4 */ 5 #ifndef _B_DATE_TIME_FORMAT_H_ 6 #define _B_DATE_TIME_FORMAT_H_ 7 8 #include <Format.h> 9 #include <FormatParameters.h> 10 11 12 class BString; 13 14 class BDateTimeFormat : public BFormat { 15 public: 16 BDateTimeFormat(); 17 BDateTimeFormat(const BDateTimeFormat &other); 18 virtual ~BDateTimeFormat(); 19 20 // formatting 21 22 // no-frills version: Simply appends the 23 // formatted date to the string buffer. 24 // Can fail only with B_NO_MEMORY or 25 // B_BAD_VALUE. 26 virtual status_t Format(bigtime_t value, BString* buffer) const; 27 28 // TODO: ... basically, all of it! 29 }; 30 31 32 #endif // _B_DATE_TIME_FORMAT_H_ 33