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