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