powered by
ISOdate and ISOdatetime construct date-time objects from numeric representations. Sys.time returns current time.
ISOdate
ISOdatetime
Sys.time
ISOdatetime( year, month, day, hour, min, sec, tz = "", lenient = FALSE, locale = NULL )ISOdate( year, month, day, hour = 0L, min = 0L, sec = 0L, tz = "", lenient = FALSE, locale = NULL )Sys.time()
ISOdate( year, month, day, hour = 0L, min = 0L, sec = 0L, tz = "", lenient = FALSE, locale = NULL )
Sys.time()
These functions return an object of class POSIXxt, which extends upon POSIXct, strptime.
POSIXxt
POSIXct
strptime
You might wish to consider calling as.Date on the result yielded by ISOdate.
as.Date
No attributes are preserved (because they are too many).
numeric vectors
NULL or '' for the default time zone (see stri_timezone_get) or a single string with a timezone identifier, see stri_timezone_list
NULL
''
stri_timezone_get
stri_timezone_list
single logical value; should date/time parsing be lenient?
NULL or '' for the default locale (see stri_locale_get) or a single string with a locale identifier, see stri_locale_list
stri_locale_get
stri_locale_list
Replacements for base ISOdatetime and ISOdate implemented with stri_datetime_create.
stri_datetime_create
ISOdate does not treat dates as being at midnight by default [fixed here]
Marek Gagolewski
The official online manual of stringx at https://stringx.gagolewski.com/
Related function(s): strptime
ISOdate(1970, 1, 1) ISOdatetime(1970, 1, 1, 12, 0, 0)
Run the code above in your browser using DataLab