to_datetime_origin function

Converts numeric value into POSIXct datetime type

Converts numeric value into POSIXct datetime type

to_datetime_origin(x)

Arguments

  • x: numeric value to be converted

Returns

time object of class POSIXct

Details

Hacker News API supplies time as a Unix Time, which origin date is "1970-01-01". This value has to be passed to as.POSIXct function in order to get proper time representation

See Also

as.POSIXct

https://github.com/HackerNews/API

https://en.wikipedia.org/wiki/Unix_time

  • Maintainer: Ryszard Szymanski
  • License: MIT + file LICENSE
  • Last published: 2019-12-13