splitTime {BBmisc} | R Documentation |
Split seconds into handy chunks of time.
Description
Note that a year is simply defined as exactly 365 days.
Usage
splitTime(seconds, unit = "years")
Arguments
seconds |
[ |
unit |
[ |
Value
[numeric(5)
]. A named vector containing the
“years”, “days”, “hours”, “minutes”
and “seconds”. Units larger than the given unit
are
NA
.
Examples
splitTime(1000)
[Package BBmisc version 1.13 Index]