Learn R Programming

ncdf4.helpers (version 0.3-7)

nc.get.time.multiplier: Gets conversion factor for time scale given units

Description

Gets conversion factor for time scale given units.

Usage

nc.get.time.multiplier(x)

Value

A numeric conversion factor to convert to seconds.

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.

Examples

Run this code
## Will return 3600
mul <- nc.get.time.multiplier("hours")

Run the code above in your browser using DataLab