Convert a POSIXct object to the format used in NEON HDF5 files
Source:R/time_functions.R
convert_POSIXct_to_NEONhdf5_time.RdConverts a POSIXct object back to the character format used by NEON in their HDF eddy covariance files. Output format, using strptime syntax, is %Y-%m-%dT%H:%M:%OSZ. POSIXct input in any time zone is converted to UTC; fractional seconds are truncated.
Author
Rich Fiorella rfiorella@lanl.gov
Examples
convert_POSIXct_to_NEONhdf5_time(Sys.time())
#> [1] "2026-11-20T22:37:02.000Z"