1、ANSI INCITS 30-1997 (R2008)(formerly ANSI X3.30-1997)for Information Technology Representation of Datefor Information InterchangeAmerican National Standardfor Information Technology Representation of Datefor Information InterchangeANSIX3.30-1997Revision ofANSI X3.30-1985 (R1991)SecretariatInfromatio
2、n Technology Industry Council (ITI)Approved June 19, 2008American National Standards Institute, Inc.Approval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approvalhave been met by the standards developer.Consensus is
3、established when, in the judgement of the ANSI Board ofStandards Review, substantial agreement has been reached by directly andmaterially affected interests. Substantial agreement means much more thana simple majority, but not necessarily unanimity. Consensus requires that allviews and objections be
4、 considered, and that a concerted effort be madetowards their resolution.The use of American National Standards is completely voluntary; theirexistence does not in any respect preclude anyone, whether he has approvedthe standards or not, from manufacturing, marketing, purchasing, or usingproducts, p
5、rocesses, or procedures not conforming to the standards.The American National Standards Institute does not develop standards andwill in no circumstances give interpretation on any American NationalStandard. Moreover, no person shall have the right or authority to issue aninterpretation of an America
6、n National Standard in the name of the AmericanNational Standards Institute. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the titlepage of this standard.CAUTION NOTICE:This American National Standard may be revised orwithdrawn at any time. The p
7、rocedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all standards by calling or writing the AmericanNational Standards Institute.Amer
8、ican National StandardPublished byAmerican National Standards Institute, Inc.11 West 42nd Street, New York, NY 10036Copyright 1998 by Information Technology Institute Council (ITI)All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or other
9、wise,without prior written permission of the publisher.Printed in the United States of AmericaCAUTION:The developers of this standard have requested that holders of patents that may be re-quired for the implementation of the standard disclose such patents to the publisher. However, nei-ther the deve
10、lopers nor the publisher have undertaken a patent search in order to identify which, ifany, patents may apply to this standard.As of the date of publication of this standard and following calls for the identification of patents thatmay be required for the implementation of the standard, no such clai
11、ms have been made. No furtherpatent search is conducted by the developer or publisher in respect to any standard it processes. Norepresentation is made or implied that licenses are not required to avoid infringement in the use ofthis standard. iContentsPageForewordii1Scope, purpose, and application
12、12Normative references . 13Definitions. 24Specifications . 25Example 2AnnexABibliography 3iiForeword(This foreword is not part of American National Standard X3.30-1997.)This standard provides a single, unambiguous format for representing the date in in-formation interchange. “Date” refers to a 24-ho
13、ur period of time. The basic represen-tation of date for information interchange specified in this standard is YYYYMMDD,where YYYY refers to a year in the Gregorian calendar, MM refers to a month insuch a year, and DD refers to the day of the month in a year. This standard will be ofinterest to info
14、rmation and data managers, data administrators, and others responsi-ble for making data sharable. It will also be of interest to manufacturers of repositoryand CASE tool products.This standard addresses the need for a single standard for information interchange ofdate data. Other standards for repre
15、senting date in information interchanges containvarious options for interchange of date; thus, potential confusion can arise as to theexact format being used for interchange of date. This standard eliminates such po-tential confusion.This standard was developed within the usual consensus process of
16、American Na-tional Standards committees. Knowledgeable experts from the National Institute forStandards and Technology, Lawrence Berkeley Laboratory, and other organizationsparticipated in the development of this standard. Issues were fully discussed, withpros and cons identified, and votes taken to
17、 resolve them.This standard contains one informative annex, which is not considered part of thisstandard.Requests for interpretation, suggestions for improvement or addenda, or defect reportsare welcome. They should be sent to National Committee for Information TechnologyStandards (NCITS), ITI, 1250
18、 Eye Street, NW, Suite 200, Washington, DC 20005.This standard was processed and approved for submittal to ANSI by NCITS. Com-mittee approval of this standard does not necessarily imply that all committee mem-bers voted for its approval. At the time it approved this standard, NCITS had thefollowing
19、members:Karen Higginbottom, Chair (Acting)Karen Higginbottom, Vice-ChairMonica Vago, SecretaryOrganization Represented Name of RepresentativeAMP, IncJohn HillCharles Brill (Alt.)Apple Computer, IncDavid K. MichaelJerry Kellenbenz (Alt.)AT it does not describe how the date is determined. This standar
20、dwas not designed for (nor does it preclude) usage by humans as input to, or output from, datasystems. This standard does not address how data is converted by data systems to be internallyprocessed and/or stored.1.2 PurposeThe purpose of the American National Standard is to provide a single standard
21、 means ofrepresenting calendar date for interchange of dates among data systems.1.3 ApplicationThe representation of calendar date specified in this standard is compatible with other national andinternational standards. In ISO 8601: 1988, the representation specified by this American NationalStandar
22、d is referred to as calendar date-complete representation-basic format, except that thenotation YYYY is used instead of CCYY.2 Normative referencesThe following standard contains provisions that, through reference in this text, constitute provisions ofthis American National Standard. At the time of
23、publication, the edition indicated was valid. Allstandards are subject to revision, and parties to agreements based on this American NationalStandard are encouraged to investigate the possibility of applying the most recent edition of thestandard indicated below.Copies of the following documents can
24、 be obtained from ANSI: Approved ANSI standards,approved and draft international standards (ISO, IEC, CEN/CENELEC), and approved foreignstandards (including BSI, JIS, and DIN). For further information, contact ANSI Customer ServiceDepartment at 212-642-4900 (phone), 212-302-1286 (fax) or via the Wor
25、ld Wide Web athttp:/www.ansi.org .ISO 8601: 1988, Data elements and interchange formats Information interchange Representation of dates and timesANSI X3.30-199723 DefinitionsFor this American National Standard, the following definitions apply:3.1 calendar date: A particular year, month, and day of t
26、he Gregorian calendar.3.2 calendar day: A particular day within a Gregorian calendar month.3.3 calendar month: A particular month within a Gregorian calendar year.3.4 calendar year: A particular year according to the Gregorian calendar.3.5 Gregorian calendar: A calendar introduced in the year 1582 A
27、D and now in general use.4 Specifications4.1 The calendar date shall be represented by eight numeric characters. The calendar date shall berepresented in the order of calendar year (YYYY), calendar month (MM), and calendar day (DD). Nocharacters may be added or omitted.4.2 The allowed values for cal
28、endar year are “0001“ through “9999“. Calendar year is presumed tobe anno Domini (A.D.), or Common Era (CE), unless otherwise specified.4.3 The allowed values for calendar month are “01“ through “12“, with a leading zero where thenumber representing the month has only one digit. January is represent
29、ed by the ordinal number“01“, and subsequent months are numbered in ascending sequence from “02“ to “12“.4.4 The allowed values for calendar day are “01“ through “31“, depending on the number of daysin a calendar month, with a leading zero where the number representing the day has only one digit.The
30、 first day of the month is represented by the ordinal number “01“, and subsequent days arenumbered in ascending sequence from “02“ to the end of the month.5 ExampleThe fourth day of July in the year 1776 is represented as “17760704“.Annex A(informative)BibliographyFor a description of the Gregorian calendar, see Explanatory Supplement to the AstronomicalAlmanac, ed: P.K. Seidelmann (University Science Books, Mill Valley, CA, 1992).