2 * Copyright 2017, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Akshay Agarwal <agarwal.akshay.akshay8@gmail.com>
8 #ifndef _B_RELATIVE_DATE_TIME_FORMAT_H_
9 #define _B_RELATIVE_DATE_TIME_FORMAT_H_
13 #include <SupportDefs.h>
18 #ifndef U_ICU_NAMESPACE
19 #define U_ICU_NAMESPACE icu
21 namespace U_ICU_NAMESPACE
{
22 class GregorianCalendar
;
23 class RelativeDateTimeFormatter
;
27 class BRelativeDateTimeFormat
: public BFormat
{
28 typedef BFormat Inherited
;
30 BRelativeDateTimeFormat();
31 BRelativeDateTimeFormat(const BLanguage
& language
,
32 const BFormattingConventions
& conventions
);
33 BRelativeDateTimeFormat(const BRelativeDateTimeFormat
& other
);
34 virtual ~BRelativeDateTimeFormat();
36 status_t
Format(BString
& string
, const time_t timeValue
) const;
39 U_ICU_NAMESPACE::RelativeDateTimeFormatter
* fFormatter
;
40 U_ICU_NAMESPACE::GregorianCalendar
* fCalendar
;
44 #endif // _B_RELATIVE_DATE_TIME_FORMAT_H_