Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 R 中将 Oracle 时间戳转换为 POSIXct?
样本数据点:
1120929000000000 1120929000000000 1120929000000000 1121021000000000 1121022000000000 1121023000000000 1121021000000000 1121022000000000 1121023000000000
我希望有一个 R 函数已经在没有任何预言的情况下做到了这一点。我已经这样做了,它将 oracle 时间戳转换为 POSIXct 类型:
to_char(CAST((FROM_TZ(CAST(GET_UTC_TIMESTAMP(T."Timestamp", TMZDIFF) AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE)