Date: Thu, 27 Jun 2002 08:25:11 -0500 From: David Syphers <dsyphers@uchicago.edu> To: Fabio Yasusi Yamamoto <fabio@hostname.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: time() Message-ID: <200206270825.11536.dsyphers@uchicago.edu> In-Reply-To: <3D1B09C2.2020308@hostname.org> References: <3D1B09C2.2020308@hostname.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 27 June 2002 07:49 am, Fabio Yasusi Yamamoto wrote: > Hi > > When i do time(), the return value should be a UTC_time-1970year? or local_time-1970year? From 'man 3 time' : "The time() function returns the value of time in seconds since 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time." > if is UTC, how can i adjust to local? That's what time zones are for. See timezone(3) or localtime(3). -David -- Everyone who believes in telekinesis, raise my hand... Astronomy and Astrophysics Center The University of Chicago 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?200206270825.11536.dsyphers>