j2posix: Convert RSEIS date list to Posix

View source: R/j2posix.R

j2posixR Documentation

Convert RSEIS date list to Posix

Description

Convert RSEIS date list to a cmpatable date/time for calculating dates and times with base R codes.

Usage

j2posix(timeinput)

Arguments

timeinput

RSEIS date-time list

Details

Code here converts to posix, but works only down to the second, i.e. fractions of a second are dropped.

Value

POSIX compatable date time structure.

Note

If you need to preserve the fractional seconds (as we do in seismology) it is recommended to cut them off and add them later.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

recdate, recdatel, dateList, dateStamp, filedatetime, rangedatetime, yeardate, Zdate, as.POSIXct

Examples


yr = 2014
j = 233.1234
A = convertATT(j, yr)
j2posix(A)
### note fractional seconds are truncated.

RSEIS documentation built on Sept. 13, 2024, 1:09 a.m.