ISOdatetime {base} | R Documentation |
Convenience wrappers to cread Date-times from numeric representations.
ISOdatetime(year, month, day, hour, min, sec, tz = "") ISOdate(year, month, day, hour = 12, min = 0, sec = 0, tz = "GMT")
year, month, day |
numerical values to specify a day. |
hour, min, sec |
numerical values for a time within a day. Fractional seconds are allowed. |
tz |
A timezone specification to be used for the conversion.
"" is the current time zone and "GMT" is UTC. |
ISOdatetime
and ISOdate
are convenience wrappers for
strptime
that differ only in their defaults and that
ISOdate
sets UTC as the timezone. For dates without times it
would normally be better to use the "Date"
class.
An object of class "POSIXct"
.
DateTimeClasses for details of the date-time classes;
strptime
for conversions from character strings.