nc.get.time.multiplier {ncdf4.helpers} | R Documentation |
Gets conversion factor for time scale given units
Description
Gets conversion factor for time scale given units.
Usage
nc.get.time.multiplier(x)
Arguments
x |
The time scale |
Details
This function returns a conversion factor from the supplied time scale (days, hours, minutes, months) to seconds. This can be used to convert to/from "(days or hours) since X" style dates.
Value
A numeric conversion factor to convert to seconds.
Note
The conversion factor for months is approximate.
Examples
## Will return 3600
mul <- nc.get.time.multiplier("hours")
[Package ncdf4.helpers version 0.3-6 Index]