make_datetime()
is a very fast drop-in replacement for
base::ISOdate()
and base::ISOdatetime()
. make_date()
produces
objects of class Date
.
make_datetime(
year = 1970L,
month = 1L,
day = 1L,
hour = 0L,
min = 0L,
sec = 0,
tz = "UTC"
)
make_date(year = 1970L, month = 1L, day = 1L)
numeric year
numeric month
numeric day
numeric hour
numeric minute
numeric second
time zone. Defaults to UTC.
Input vectors are silently recycled. All inputs except sec
are
silently converted to integer vectors; sec
can be either integer or
double.
make_datetime(year = 1999, month = 12, day = 22, sec = 10)
#> [1] "1999-12-22 00:00:10 UTC"
make_datetime(year = 1999, month = 12, day = 22, sec = c(10, 11))
#> [1] "1999-12-22 00:00:10 UTC" "1999-12-22 00:00:11 UTC"