converting a tm struct. into seconds

Guy Harris guy at sun.uucp
Tue Jul 22 04:30:53 AEST 1986


> 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.

I presume you have UNIX source available; if so, try looking at the "date"
command, which converts times specified in roughly the same form into UNIX
times.
-- 
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy at sun.com (or guy at sun.arpa)



More information about the Comp.unix mailing list