The unix time is expected to be in seconds since 1970-01-01 00:00:00 for the UTC time zone.
Usage
unixtime_to_dttm(x)
unixtime_to_YMD(x)
unixtime_to_YMDh(x)
unixtime_to_YMDhm(x)
unixtime_to_YMDhms(x)
unixtime_to_ymd(x)
unixtime_to_ymdh(x)
unixtime_to_ymdhm(x)
unixtime_to_ymdhms(x)
unixtime_to_str_dttm(x)
Examples
unixtime_to_dttm(Sys.time())
#> [1] "2024-02-02 14:47:44 UTC"
unixtime_to_ymd(Sys.time())
#> [1] "20240202"
unixtime_to_ymdh(Sys.time())
#> [1] "2024020214"
unixtime_to_ymdhm(Sys.time())
#> [1] "202402021447"
unixtime_to_ymdhms(Sys.time())
#> [1] "20240202144744"
unixtime_to_str_dttm(Sys.time())
#> [1] "20240202144744"