[英]R: How to convert this integer format to date
Data retrieved from a system API gives me this type of integer for the field run_started
such as 1618269381119
, 1618304423122
... Does somebody know how to convert that to datetimes in R? 我以前没有见过这种格式, lubridate::as_datetime
给了我一个 53282 年的日期,它应该是最近的,2020 年或 2121 年。
谢谢
从毫秒转换为秒,然后转换为日期:
as_datetime(1618304423122/1000)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.