converting a tm struct. into seconds

Richard Klappal rlk at chinet.UUCP
Wed Jul 23 14:07:09 AEST 1986


In article <123 at spp5.UUCP> brahms at spp5.UUCP (Bradley S. Brahms) writes:
>Could someone please either post or send me the formula (in c hopefully)
>for changing a tm struct back into the number of seconds since 00:00:00,
>GMT, Jan 1, 1970?  Thanx.

Marc Rochkind's book on advanced un*x programming has a 2 page+/-
routine to convert a date (yymmddhhmmss) into seconds.  The mods
to handle the tm_ struct would be trivial.

-- 
---
UUCP: ..!ihnp4!chinet!uklpl!rlk || MCIMail: rklappal || Compuserve: 74106,1021
      ..!ihnp4!ihu1h!rlk
---



More information about the Comp.unix mailing list