0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ISO 8601のUTCの文字列から指定したタイムゾーンの文字列を得る方法

0
Posted at

次のようなISO 8601の拡張表現のタイプスタンプ文字列がログファイルなどにあったとき、JSTタイムゾーンの時刻に変換するには、parsedateパッケージを使うと便利。

> 拡張表現文字列 = "2013-02-08T09:30:26Z"
> library(parsedate)
> parse_iso_8601(拡張表現文字列)
[1] "2013-02-08 09:30:26 UTC"
> as.POSIXlt(parse_iso_8601(拡張表現文字列), tz = "Japan")
[1] "2013-02-08 18:30:26 JST"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?