31 lines
660 B
C++
31 lines
660 B
C++
/*
|
|
* Copyright 2010, Haiku, Inc.
|
|
* Distributed under the terms of the MIT Licence.
|
|
*/
|
|
#ifndef _B_DATE_FORMAT_H_
|
|
#define _B_DATE_FORMAT_H_
|
|
|
|
#include <DateTimeFormat.h>
|
|
|
|
|
|
class BString;
|
|
|
|
class BDateFormat : public BDateTimeFormat {
|
|
public:
|
|
BDateFormat();
|
|
BDateFormat(const BDateFormat &other);
|
|
virtual ~BDateFormat();
|
|
|
|
// formatting
|
|
|
|
// 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;
|
|
|
|
// TODO: ... all, basically!
|
|
};
|
|
|
|
|
|
#endif // _B_DATE_FORMAT_H_
|