Get Values for Date and Time Fields
Computes and returns values for all date and time fields.
stri_datetime_fields(time, tz = attr(time, "tzone"), locale = NULL)
time |
an object of class |
tz |
|
locale |
|
Vectorized over time
.
Returns a data frame with the following columns:
Year (0 is 1BC, -1 is 2BC, etc.)
Month (1-based, i.e., 1 stands for the first month, e.g., January;
note that the number of months depends on the selected calendar,
see stri_datetime_symbols
)
Day
Hour (24-h clock)
Minute
Second
Millisecond
WeekOfYear (this is locale-dependent)
WeekOfMonth (this is locale-dependent)
DayOfYear
DayOfWeek (1-based, 1 denotes Sunday; see stri_datetime_symbols
)
Hour12 (12-h clock)
AmPm (see stri_datetime_symbols
)
Era (see stri_datetime_symbols
)
Other datetime:
stri_datetime_add()
,
stri_datetime_create()
,
stri_datetime_format()
,
stri_datetime_fstr()
,
stri_datetime_now()
,
stri_datetime_symbols()
,
stri_timezone_get()
,
stri_timezone_info()
,
stri_timezone_list()
stri_datetime_fields(stri_datetime_now()) stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew') stri_datetime_symbols(locale='@calendar=hebrew')$Month[ stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')$Month ]
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.