EpochMilli2Date {Rthingsboard} | R Documentation |
Convert an epoch in milliseconds into a date
EpochMilli2Date(x, timezone = "GMT")
x |
A character or a numeric representing an epoch in milliseconds |
timezone |
A character with the time zone used for the conversion |
A POSIXct, the date corresponding to the epoch
epoch <- Date2EpochMilli(as.numeric(Sys.time()))
EpochMilli2Date(epoch)