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?

RFC3339とは?

Last updated at Posted at 2024-04-18

概要

APIなどで時刻情報をやり取りする際に以下のようなフォーマットが使われていて、どういった形式なのか気になり調べてみました。

2024-04-18T03:24:00Z

結論

  • RFC3339もしくはISO8601という規格らしい
  • RFCはRequest for Commentsの略
  • ISOはInternational Organization for Standardizationの略
  • 年月日はyyyy-mm-dd、yyyymmdd どちらでもOK
  • 時刻は00:00~24:00の24時間表記
  • 日付と時刻の間に「T」を挟む。このTはただの区切り文字という意味しかないらしい
  • 末尾の「Z」はタイムゾーンがUTC標準時という事を示す
  • 日本時間は「yyyy-mm-ddThh:MM:ss +09:00」と表記する
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?