[svlug] Time - yy mm dd hh mm ss

Emmanuel-Robert Mayssat emayssat at valinux.com
Fri May 26 09:59:19 PDT 2000


Have a look at strftime, strptime.

Other time functions you may need are :
ctime , localtime, gmttime, mktime, asctime

You probably want to use difftime


See time.h and have a look at the tm structure ;-)


--
Emmanuel

+--------------------------------------------------------------------+
| Date: Thu, 25 May 2000 21:20:43 PDT
| From:  "Edward M. Goldberg" <emg at writeme.com>
+--------------------------------------------------------------------+
|
| 
| Time,
| 
| I needs a routine that converts time in "time = yyyy mm dd hh mm ss" format
| to UNIX standard time so that I can test for (timeA - TimeB) >  6Hr with no
| Y2K problems.
| 
| The old code that I have does not perform any corrections for Y2K leap second
s
| or Leap years ...
| 
| If some one on the list could point me to the correct routine it would help m
e.
| 
| 
| e.m.g.
| 
| 
| _______________________________________________
| svlug mailing list
| svlug at lists.svlug.org
| http://lists.svlug.org/mailman/listinfo/svlug
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| Robert-Emmanuel Mayssat                      @ VA Linux, Inc       |
| https://vaweb.valinux.com/~emayssat/         Desk # : 408/542-8759 |
+--------------------------------------------------------------------+         
       





More information about the svlug mailing list