ICU 66.0.1
66.0.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/ureldatefmt.h"
#include "unicode/locid.h"
#include "unicode/formattedvalue.h"
Go to the source code of this file.
Data Structures | |
class | icu::FormattedRelativeDateTime |
An immutable class containing the result of a relative datetime formatting operation. More... | |
class | icu::RelativeDateTimeFormatter |
Formats simple relative dates. More... | |
Namespaces | |
icu | |
File coll.h. | |
Typedefs | |
typedef enum UDateRelativeUnit | UDateRelativeUnit |
Represents the unit for formatting a relative date. More... | |
typedef enum UDateAbsoluteUnit | UDateAbsoluteUnit |
Represents an absolute unit. More... | |
typedef enum UDateDirection | UDateDirection |
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday". More... | |
Enumerations | |
enum | UDateRelativeUnit { UDAT_RELATIVE_SECONDS, UDAT_RELATIVE_MINUTES, UDAT_RELATIVE_HOURS, UDAT_RELATIVE_DAYS, UDAT_RELATIVE_WEEKS, UDAT_RELATIVE_MONTHS, UDAT_RELATIVE_YEARS, UDAT_RELATIVE_UNIT_COUNT } |
Represents the unit for formatting a relative date. More... | |
enum | UDateAbsoluteUnit { UDAT_ABSOLUTE_SUNDAY, UDAT_ABSOLUTE_MONDAY, UDAT_ABSOLUTE_TUESDAY, UDAT_ABSOLUTE_WEDNESDAY, UDAT_ABSOLUTE_THURSDAY, UDAT_ABSOLUTE_FRIDAY, UDAT_ABSOLUTE_SATURDAY, UDAT_ABSOLUTE_DAY, UDAT_ABSOLUTE_WEEK, UDAT_ABSOLUTE_MONTH, UDAT_ABSOLUTE_YEAR, UDAT_ABSOLUTE_NOW, UDAT_ABSOLUTE_QUARTER, UDAT_ABSOLUTE_HOUR, UDAT_ABSOLUTE_MINUTE, UDAT_ABSOLUTE_UNIT_COUNT = UDAT_ABSOLUTE_NOW + 4 } |
Represents an absolute unit. More... | |
enum | UDateDirection { UDAT_DIRECTION_LAST_2, UDAT_DIRECTION_LAST, UDAT_DIRECTION_THIS, UDAT_DIRECTION_NEXT, UDAT_DIRECTION_NEXT_2, UDAT_DIRECTION_PLAIN, UDAT_DIRECTION_COUNT } |
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday". More... | |
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".
typedef enum UDateRelativeUnit UDateRelativeUnit |
enum UDateAbsoluteUnit |
Represents an absolute unit.
Enumerator | |
---|---|
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_HOUR | Hour.
|
UDAT_ABSOLUTE_MINUTE | Minute.
|
UDAT_ABSOLUTE_UNIT_COUNT | One more than the highest normal UDateAbsoluteUnit value.
|
Definition at line 96 of file reldatefmt.h.
enum UDateDirection |
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday".
Enumerator | |
---|---|
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 206 of file reldatefmt.h.
enum UDateRelativeUnit |
Represents the unit for formatting a relative date.
e.g "in 5 days" or "in 3 months"
Enumerator | |
---|---|
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 39 of file reldatefmt.h.