Date: Thu, 27 Jun 2002 12:51:45 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: dsyphers@uchicago.edu, freebsb-questions@freebsd.org Cc: jerrymc@msu.edu (Jerry McAllister) Subject: Re: time() Message-ID: <200206271651.g5RGpj624016@clunix.cl.msu.edu> In-Reply-To: <200206270825.11536.dsyphers@uchicago.edu> from "David Syphers" at Jun 27, 2002 08:25:11 AM
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? If by that you mean you want to see it in more familiar format, use 'date -r LONG-UTC-NUMBER' and give it that long number of seconds for LONG-UTC-NUMBER. ////jerry > > 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 > 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?200206271651.g5RGpj624016>