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

Unix time on a DOS or OS/2 computer

I have been working with netCDF files wherein time is recorded using
the Unix standard (i.e. seconds since 1-Jan-1970).  Converting this to
more familiar representations (e.g. year, month, day, etc.) is no
problem on Unix systems using the built-in routine GMTIME.

However, I would now like to read and write netCDF files on a DOS or
OS/2 computer.  These systems do not have built-ins for Unix time.

Does anyone have an algorithm (preferrably coded in FORTRAN) that will
convert between Unix time and more familiar representations?

Jim Liljegren


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community 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