Re: time
- Posted by Kat <gertie at PELL.NET> Aug 08, 2002
- 456 views
On 8 Aug 2002, at 9:42, Carl W. wrote: > > Kat wrote: > > > > <embarassed look> > > I forgot how the email thread about converting machine time to human time > > ended. > > If it was a Windows thread I may have skipped it. Chances are there's > something in the Windows API that'll do it. > Otherwise <product plug mode on>... > > > Given: > > 1028458790 > > > > how to convert to: > > Sun Aug 04 05:59:50 2002 > > This looks like the 'Number of seconds since 1-1-1970' format. > > I wrote a library last year that handles this and a few other date and time > handling routines. Yes, i looked at it intently, before emailing, and saw nothing to do what i outlined above. There is a converter to go from seconds to year and day- count, but in the example you gave, i don't see how day 357 = xmas. How isn't it the day before or after? How do i get the day (1,2,3 etc or mon, tues etc) and month (1,2,3 etc or jan feb etc)? Kat