Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Mar 1998 17:07:40 +1030
From:      Greg Lehey <grog@lemis.com>
To:        michael dorin <mike@chaski.com>, questions@FreeBSD.ORG
Subject:   Re: localtime algorithm (or how can I calculate m/d/y from ..
Message-ID:  <19980306170740.02786@freebie.lemis.com>
In-Reply-To: <199803052331.XAA24002@chaski.com>; from michael dorin on Thu, Mar 05, 1998 at 11:31:11PM %2B0000
References:  <199803052331.XAA24002@chaski.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu,  5 March 1998 at 23:31:11 +0000, michael dorin wrote:
> 
> How does the localtime function covert seconds past 1970 into months,
> days, year?
> 
> Is there a simple algorithm?

You have the source.  Take a look at
/usr/local/lib/libc/stdtime/localtime.c.

Greg


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980306170740.02786>