j2posix {RSEIS} | R Documentation |
Convert RSEIS date list to a cmpatable date/time for calculating dates and times with base R codes.
j2posix(timeinput)
timeinput |
RSEIS date-time list |
Code here converts to posix, but works only down to the second, i.e. fractions of a second are dropped.
POSIX compatable date time structure.
If you need to preserve the fractional seconds (as we do in seismology) it is recommended to cut them off and add them later.
Jonathan M. Lees<jonathan.lees@unc.edu>
recdate, recdatel, dateList, dateStamp, filedatetime, rangedatetime, yeardate, Zdate, as.POSIXct
yr = 2014
j = 233.1234
A = convertATT(j, yr)
j2posix(A)
### note fractional seconds are truncated.