Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

j2posix

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

Seismic Time Series Analysis Tools

v3.9-3
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Jake Anderson [ctb], Leonard Lisapaly [ctb], Dave Harris [aut, cph]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.