Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2006 10:26:51 -0600
From:      Jonathan Horne <freebsd@dfwlp.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Need explaination for `date` command !
Message-ID:  <200612161026.51929.freebsd@dfwlp.com>
In-Reply-To: <BAY107-F32E12AB29EF367F368697DB9CB0@phx.gbl>
References:  <BAY107-F32E12AB29EF367F368697DB9CB0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 16 December 2006 06:18, Supote Leelasuppakorn wrote:
> Hi lists,
>
>    I am currently using FreeBSD-6.1 for a while. I am in Thailand so
> my time zone is GMT+7. Let say the time is 3:00 PM in Thailand.
> What I would like to know is
>
> 1. What is the output of `date` command I should get ?
> 2. What is the output of `date -u` command I should get ?
>
> TIA
>
>
> ------------------------------------
>     Pote  :-)
> ------------------------------------
>

well, mine outputs like this:

[jhorne@athena ~]$ date
Sat Dec 16 10:23:44 CST 2006
[jhorne@athena ~]$ date -u
Sat Dec 16 16:23:46 UTC 2006

(i am GMT-6, US Central Time).  as you can see, the second run with the -u, 
added my 6 hours back on again.  so, if you are GMT+7, i would assume that 
when you give the -u, you would show a time 7 hours earlier.

hth,
jonathan



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