powered by
Note that a year is simply defined as exactly 365 days.
splitTime(seconds, unit = "years")
[numeric(5)]. A named vector containing the “years”, “days”, “hours”, “minutes”
numeric(5)
and “seconds”. Units larger than the given unit are NA.
unit
NA
[numeric(1)] Number of seconds. If not an integer, it is rounded down.
numeric(1)
[character(1)] Largest unit to split seconds into. Must be one of: c("years", "days", "hours", "minutes", "seconds"). Default is “years”.
character(1)
c("years", "days", "hours", "minutes", "seconds")
splitTime(1000)
Run the code above in your browser using DataLab