ISO 8601

出典: フリー百科事典『ウィキペディア(Wikipedia)』

ISO 8601ISO[ 1][1] big-endian[2]

-/24

2022942022-09-0420220904[ 2]

202294160748.53 2022-09-04T16:07:48.5320220904T160748.53 T

 

JIS X 0301JIS[3]

[]



  • ISO 2014:1976[4] Writing of calendar dates in all-numeric form
  • ISO 8601:1988[5] Data elements and interchange formats — Information interchange — Representation of dates and times
  • ISO 8601:2000[6] 同上
  • ISO 8601:2004[7] 同上
  • ISO 8601-1:2019 (Date and time -- Representations for information interchange -- Part 1: Basic rules)[8] および ISO 8601-2:2019 (Date and time -- Representations for information interchange -- Part 2: Extensions)[9] の2分冊(2019年2月発行。2021年時点の最新版)
  • ISO 8601-1:2019/Amd 1:2022 (Date and time — Representations for information interchange — Part 1: Basic rules — Amendment 1: Technical corrections)[10]

基本形式と拡張形式[編集]

ISO 8601形式の時刻表記例[11]
基本形式 20240602T173533+0900
拡張形式 2024-06-02T17:35:33+09:00

2 T

YYYY4MM2DDhhmmss UTC0900 YYYYMMDDThhmmss+0900 

4 (-)  (-)  T (:) 

UTC Z (+)  () YYYY-MM-DDThh:mm:ss+09:00 

ISOJIS/2022/09/27.2022.09.27使ISOJIS-:JIS X 030104.09.27  R04.09.27 #




[]


調1875520[12]

200011[13]

[14]


[]


ISO 8601 3

00009999[]


1582101500001582使[15]Java1582ISO 8601 ISO

4

00009999[]


00009999[16](+-)56+019332+000299西10000

 0001 西10000 1-0001 2-0002 3西西00

[]


 01 12112

年と月と日[編集]

YYYY-MM-DD または YYYYMMDD
YYYY-MM (YYYYMM は不可 )
YYYY

YYYYMMDD YYYY-MM-DD 

:
20220904 2022-09-04202294

YYYY-MM  -DD YYYY  MMDD(-MM-DD) YYYYMM -6

:
2004-04
20044

2004
2004

20
20002000209910021200121001001100centuryJIS X 0301century

[]


YYYY-DDD  DDD 11 001 1231 365  366 

:
2004-092 (2004092)
20049241

[]


POSIXstrftime%GJIS X 0301

YYYY-Www-D ww 1 01 52 53

D  1 789

:
2004-W14-4 (2004W144)
20041441

1

114

1
111213

1112

11

1
1231

12301231

122912301231

[]


2412  hh:mm:ss hh  00 24mm  00 59ss  00 59 60ss, mm:ss  hh:mm, hh使

 ( , )  ( . )  . 

:
18:30:09.57 (183009.57)
183009.57

18:30.25 (1830.25)
1830.25 = 183015

18:30:15 

18.7225
18.7225 = 184321

18:43:21 

200:00  24:00, 24:00:00 00:00 24:00 2004-03-31T24:00Z  2004-04-01T00:00Z 

[]


<date1>T<time1> T:2004-04-01T00:00:01+09:0020040401000001JST

[]


UTC

 ZUTC

:
2004-04-01T12:00Z (20040401T1200Z)
2004411200UTC

UTC

UTC(+)UTC() ±hh:mm, ±hhmm, ±hh 
  • 例:
    • 2004-04-01T12:00+09:00 (20040401T1200+0900)
      2004年4月1日12時00分(JST

継続時間[編集]

PnYnMnDTnHnMnS
PnW
P<date>T<time>

P[n]Y[n]M[n]DT[n]H[n]M[n]SP[n]W[n]0PYMWDTHMS

P period 

Y 

M 

W 

D 

T 
H 

M 

S 

P3Y6M4DT12H30M5S36412305

0P23DT23HP4Y1PPT0SP0D

P1M1PT1M1T使P0.5YP0,5YP0.5Y使PT36HP1DT12H使PT36HP1DT12H

使PYYYYMMDDThhmmssP[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]使1325[17]

使[18][19]

[]


time interval[20]"/"2 ("/") 

:
2004-04-01/2005-07-01
200441200571

2004-04-01T12:00:00+09:00/2007-08-31T15:00:00+09:00
 (JST) 200441120020078311500



:
2004-04-01/07-01
20044171

:
2004-04-01/15
20044115

[]


 "R[n]/" n[n]-10

"P1Y2M10DT2H30M" 5"R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M"

[]

 (JIS X 0301)[]


 JIS X 0301JIS C 6262ISO 8601:2000 JIS X 0301:2002  調ISO 8601

MTSHR[21] N

YY.MM.DDNYY.MM.DDYY21西2019-06-23

:
H16.04.01R02.06.23

16.04.0102.06.23

西2021-10-27T15:48:10.78R02.06.23T15:48:10.78 

M06.01.011873-01-01M01.01.01M05.12.02186812518721231西M01.01.01

 (CNS 7648)[]


 CNS 7648R.O.C.

:

R.O.C.93-04-01

[]


Java  java.time [22].NET Framework [23]JavaScript  Date.toISOString() [24]Python  datetime.isoformat() [25]

脚注[編集]

注釈[編集]



(一)^ 西211/09/12 11.09.122011-09-122012-09-112012-11-093

(二)^ 2022/09/04-04-09-202204/09/202209-04-202209/04/2022()

出典[編集]



(一)^ en:Date format by country

(二)^ date-time format by region, visualised CLDR 38.1/ISO 8601

(三)^ JIS X 0301:2002 p.252JISkikakurui.com 

(四)^ ISO 2014:1976 - Writing of calendar dates in all-numeric form

(五)^ ISO 8601:1988 - Data elements and interchange formats -- Information interchange -- Representation of dates and times

(六)^ ISO 8601:2000 - Data elements and interchange formats -- Information interchange -- Representation of dates and times

(七)^ ISO 8601:2004 - Data elements and interchange formats -- Information interchange -- Representation of dates and times

(八)^ ISO 8601-1:2019 - Date and time -- Representations for information interchange -- Part 1: Basic rules

(九)^ ISO 8601-2:2019 - Date and time -- Representations for information interchange -- Part 2: Extensions

(十)^ ISO 8601-1:2019/Amd 1:2022 Date and time  Representations for information interchange  Part 1: Basic rules  Amendment 1: Technical corrections

(11)^ 

(12)^ [1] 3.2 Time scalesThe Gregorian calendar has a reference point that assigns 20 May 1875 to the calendar day that the Convention du Mètre was signed in Paris.p.14

(13)^ [2] 3.2.2 The week calendarThe reference point of the time scale assigns Saturday to 1 January 2000.p.15

(14)^ JIS X0301:2002 p.21A2002820

(15)^ [3] p.20Values in the range [0000] through [1582] shall only be used by mutual agreement of the partners in information interchange.

(16)^ [4] 3.5 Expansion p.19

(17)^ ISO 8601:2004 section 4.4.3.3 Alternative format

(18)^ Java 8 Class Duration. Java Platform Standard Edition 8.  Oracle. 2017107

(19)^ Amazon Alexa Duration. Amazon Developer.  Amazon.com. 2017107

(20)^ 3.1.1.6 time interval. part of the time axis (3.1.1.4) limited by two instants (3.1.1.3) and, unless otherwise stated, the limiting instants themselves ISO 8601-1:2019

(21)^  JIS    2019520

(22)^ java.time (Java SE 11 & JDK 11 )

(23)^  ("O""o")  -  | Microsoft Docs

(24)^ Date.prototype.toISOString() - JavaScript | MDN

(25)^ datetime ---   Python 3 

関連項目[編集]

外部リンク[編集]