ICU 56.1
56.1
|
C++ API: Formats relative dates such as "1 day ago" or "tomorrow". More...
#include "unicode/utypes.h"
#include "unicode/uobject.h"
#include "unicode/udisplaycontext.h"
#include "unicode/locid.h"
Go to the source code of this file.
Data Structures | |
class | icu::RelativeDateTimeFormatter |
Formats simple relative dates. More... |
Namespaces | |
namespace | icu |
File coll.h. |
Typedefs | |
typedef enum UDateRelativeDateTimeFormatterStyle | UDateRelativeDateTimeFormatterStyle |
The formatting style. | |
typedef enum UDateRelativeUnit | UDateRelativeUnit |
Represents the unit for formatting a relative date. | |
typedef enum UDateAbsoluteUnit | UDateAbsoluteUnit |
Represents an absolute unit. | |
typedef enum UDateDirection | UDateDirection |
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday". |
C++ API: Formats relative dates such as "1 day ago" or "tomorrow".
Definition in file reldatefmt.h.
typedef enum UDateAbsoluteUnit UDateAbsoluteUnit |
Represents an absolute unit.
typedef enum UDateDirection UDateDirection |
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday".
The formatting style.
typedef enum UDateRelativeUnit UDateRelativeUnit |
enum UDateAbsoluteUnit |
Represents an absolute unit.
UDAT_ABSOLUTE_SUNDAY |
Sunday.
|
UDAT_ABSOLUTE_MONDAY |
Monday.
|
UDAT_ABSOLUTE_TUESDAY |
Tuesday.
|
UDAT_ABSOLUTE_WEDNESDAY |
Wednesday.
|
UDAT_ABSOLUTE_THURSDAY |
Thursday.
|
UDAT_ABSOLUTE_FRIDAY |
Friday.
|
UDAT_ABSOLUTE_SATURDAY |
Saturday.
|
UDAT_ABSOLUTE_DAY |
Day.
|
UDAT_ABSOLUTE_WEEK |
Week.
|
UDAT_ABSOLUTE_MONTH |
Month.
|
UDAT_ABSOLUTE_YEAR |
Year.
|
UDAT_ABSOLUTE_NOW |
Now.
|
UDAT_ABSOLUTE_UNIT_COUNT |
Count of items in this enum.
|
Definition at line 117 of file reldatefmt.h.
enum UDateDirection |
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday".
UDAT_DIRECTION_LAST_2 |
Two before. Not fully supported in every locale.
|
UDAT_DIRECTION_LAST |
Last.
|
UDAT_DIRECTION_THIS |
This.
|
UDAT_DIRECTION_NEXT |
Next.
|
UDAT_DIRECTION_NEXT_2 |
Two after. Not fully supported in every locale.
|
UDAT_DIRECTION_PLAIN |
Plain, which means the absence of a qualifier.
|
UDAT_DIRECTION_COUNT |
Count of items in this enum.
|
Definition at line 205 of file reldatefmt.h.
The formatting style.
UDAT_STYLE_LONG |
Everything spelled out.
|
UDAT_STYLE_SHORT |
Abbreviations used when possible.
|
UDAT_STYLE_NARROW |
Use the shortest possible form.
|
UDAT_STYLE_COUNT |
The number of styles.
|
Definition at line 31 of file reldatefmt.h.
enum UDateRelativeUnit |
Represents the unit for formatting a relative date.
e.g "in 5 days" or "in 3 months"
UDAT_RELATIVE_SECONDS |
Seconds.
|
UDAT_RELATIVE_MINUTES |
Minutes.
|
UDAT_RELATIVE_HOURS |
Hours.
|
UDAT_RELATIVE_DAYS |
Days.
|
UDAT_RELATIVE_WEEKS |
Weeks.
|
UDAT_RELATIVE_MONTHS |
Months.
|
UDAT_RELATIVE_YEARS |
Years.
|
UDAT_RELATIVE_UNIT_COUNT |
Count of items in this enum.
|
Definition at line 62 of file reldatefmt.h.