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/ureldatefmt.h"#include "unicode/locid.h"#include "unicode/formattedvalue.h"Go to the source code of this file.
C++ API: Formats relative dates such as "1 day ago" or "tomorrow".
Definition in file reldatefmt.h.
| 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_QUARTER |
Quarter.
|
| UDAT_ABSOLUTE_UNIT_COUNT |
One more than the highest normal UDateAbsoluteUnit value.
|
Definition at line 93 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 |
One more than the highest normal UDateDirection value.
|
Definition at line 191 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 |
One more than the highest normal UDateRelativeUnit value.
|
Definition at line 36 of file reldatefmt.h.
1.6.1