2 * Copyright 2010 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _B_HTTP_TIME_H_
6 #define _B_HTTP_TIME_H_
16 B_HTTP_TIME_FORMAT_PARSED
= -1,
17 B_HTTP_TIME_FORMAT_RFC1123
= 0,
18 B_HTTP_TIME_FORMAT_PREFERRED
= B_HTTP_TIME_FORMAT_RFC1123
,
19 B_HTTP_TIME_FORMAT_COOKIE
,
20 B_HTTP_TIME_FORMAT_RFC1036
,
21 B_HTTP_TIME_FORMAT_ASCTIME
28 BHttpTime(BDateTime date
);
29 BHttpTime(const BString
& dateString
);
32 void SetString(const BString
& string
);
33 void SetDate(BDateTime date
);
38 BString
ToString(int8 format
= B_HTTP_TIME_FORMAT_PARSED
);
47 #endif // _B_HTTP_TIME_H_