Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/time_calendar.R
Constructs date-time objects from numeric representations.
1 2 3 4 5 6 7 8 9 10 11 | stri_datetime_create(
year,
month,
day,
hour = 12L,
minute = 0L,
second = 0,
lenient = FALSE,
tz = NULL,
locale = NULL
)
|
year |
integer vector; 0 is 1BC, -1 is 2BC, etc. |
month |
integer vector; months are 1-based |
day |
integer vector |
hour |
integer vector |
minute |
integer vector |
second |
numeric vector; fractional seconds are allowed |
lenient |
single logical value; should the operation be lenient? |
tz |
|
locale |
|
Vectorized over year
, month
, day
, hour
,
hour
, minute
, and second
.
Returns an object of class POSIXct
.
Marek Gagolewski and other contributors
The official online manual of stringi at https://stringi.gagolewski.com/
Other datetime:
stri_datetime_add()
,
stri_datetime_fields()
,
stri_datetime_format()
,
stri_datetime_fstr()
,
stri_datetime_now()
,
stri_datetime_symbols()
,
stri_timezone_get()
,
stri_timezone_info()
,
stri_timezone_list()
1 2 3 4 | stri_datetime_create(2015, 12, 31, 23, 59, 59.999)
stri_datetime_create(5775, 8, 1, locale='@calendar=hebrew') # 1 Nisan 5775 -> 2015-03-21
stri_datetime_create(2015, 02, 29)
stri_datetime_create(2015, 02, 29, lenient=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.