ICU 72.1 72.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 | |
namespace | 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... | |
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 204 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.