splitTime {BBmisc} | R Documentation |
Note that a year is simply defined as exactly 365 days.
splitTime(seconds, unit = "years")
seconds |
[ |
unit |
[ |
[numeric(5)
]. A named vector containing the
“years”, “days”, “hours”, “minutes”
and “seconds”. Units larger than the given unit
are
NA
.
splitTime(1000)
## years days hours minutes seconds
## 0 0 0 16 40