Date: Mon, 18 Dec 2006 20:01:58 -0500 From: Jerry McAllister <jerrymc@msu.edu> To: Supote Leelasuppakorn <pjn0211@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Need explaination for `date` command ! Message-ID: <20061219010158.GA20922@gizmo.acns.msu.edu> In-Reply-To: <BAY107-F32E12AB29EF367F368697DB9CB0@phx.gbl> References: <BAY107-F32E12AB29EF367F368697DB9CB0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, > 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 ? If I understand your question correctly; If your system is configured correctly and the date/time is set correctly, the output of 'date' should be the correct time and date for your time zone. If you add the -u flag, it should display the current GMT time and date. For example, if the current time in Thailand is 15:00 (3:00 pm), then plain 'date' should print: Mon Dec 18 15:00:00 TST 2006 For date -u you should see: Mon Dec 18 08:00:00 TST 2006 Note, I don't know the correct bymbol for the time in Thailand so I just stuck in 'TST'. ////jerry > > TIA > > ------------------------------------ > Pote :-) > ------------------------------------ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061219010158.GA20922>