Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

ISO Standard for date/time

24-Mar-1993 2109 (lysakowski@mr4dec.enet.dec.com)
Wed, 24 Mar 93 18:26:59 -0800

Why don't you just use the ISO standard for date/time stamps?

These are:

ISO Standard 2014-1976 (E) "Writing of Calendar Dates in All-Numeric Form".

ISO Standard 3307-1975 (E) "Information Interchange - Representations of
Time of the Day".

ISO Standard 4031-1978 (E) Information Interchange - Representations of
Local Time Differentials".

----------------------------------------------------------------------

What these translate into are:

YYYYMMDDhhmmss.+/-ffff

For example "19910801123023-0500" is 12:30 P.M. on August 1, 1991 in New
York City. Note that -0500 is 5 full hours behind Greenwich Mean Time.

The ISO standards permit the use of separators, if they are required to
facilitate human understanding.

For example: 1991,08,01,12:30:23-0500.

ISO may have revised it recently to take fractions of seconds into
account. What they've done for UDUNITS looks pretty close to ISO, but it
doesn't comply with the international standard. For something as universal
as date/time stamp this compliance is pretty important. Anyone know why
the ISO standard wasn't used?

Rich
==========================================================================

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690