The Main Function:
|
|
|---|---|
Format a datetime with a formatting string |
|
LocalesYou have the option to format dates times according to a specified locale, and there are hundreds of locales. The vector object |
|
A list of all supported locales |
|
Get a vector of all supported locales |
|
Flexible Dates and TimesFlexible dates and times (divided into 12- and 24-hour variants) embody the idea of canonical forms that are translated faithfully across many different locales. The vector objects ( |
|
A list of all flexible date types |
|
Get a vector of all flexible date types |
|
A list of all 24-hour flexible time types |
|
Get a vector of all 24-hour flexible time types |
|
A list of all 12-hour flexible time types |
|
Get a vector of all 12-hour flexible time types |
|
Standard Dates and TimesStandard dates and times follow the convention of four different types (“short”, “medium”, “long”, and “full”) that are specially formulated for each and every locale. These helper functions provide a simple interface for choosing a standardized formatting pattern. Invoke any one of them as an input value for |
|
Obtain a standard datetime format that works across locales |
|
Obtain a standard date format that works across locales |
|
Obtain a standard time format that works across locales |
|
Useful Day and Month VectorsSometimes you need to know things about days of the week and months (like, their short names). We can get information like that with the |
|
Get a vector of all the short weekday names |
|
Get a vector of all the short month names |
|
Get a named vector of all first-day-of-the-week names for different regions |
|