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