2010-08-02 00:28:19 +04:00
|
|
|
/*
|
2010-02-17 03:02:50 +03:00
|
|
|
* Copyright 2010, Haiku, Inc.
|
2010-08-02 00:28:19 +04:00
|
|
|
* Distributed under the terms of the MIT Licence.
|
2010-02-17 03:02:50 +03:00
|
|
|
*/
|
|
|
|
#ifndef _B_TIME_FORMAT_H_
|
|
|
|
#define _B_TIME_FORMAT_H_
|
|
|
|
|
2010-08-02 00:28:19 +04:00
|
|
|
#include <DateTimeFormat.h>
|
2010-02-17 03:02:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
class BString;
|
|
|
|
|
2010-08-02 00:28:19 +04:00
|
|
|
class BTimeFormat : public BDateTimeFormat {
|
|
|
|
public:
|
|
|
|
BTimeFormat(const BTimeFormat &other);
|
|
|
|
virtual ~BTimeFormat();
|
|
|
|
|
|
|
|
// formatting
|
2010-02-17 03:02:50 +03:00
|
|
|
|
2010-08-02 00:28:19 +04:00
|
|
|
// no-frills version: Simply appends the
|
|
|
|
// formatted date to the string buffer.
|
|
|
|
// Can fail only with B_NO_MEMORY or B_BAD_VALUE.
|
|
|
|
virtual status_t Format(bigtime_t value, BString* buffer) const;
|
2010-02-17 03:02:50 +03:00
|
|
|
|
2010-08-02 00:28:19 +04:00
|
|
|
// TODO: ... basically, all of it!
|
2010-02-17 03:02:50 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-08-02 00:28:19 +04:00
|
|
|
#endif // _B_TIME_FORMAT_H_
|