From owner-freebsd-questions@FreeBSD.ORG Sat Dec 16 16:26:59 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F05E16A403 for ; Sat, 16 Dec 2006 16:26:59 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from regulus.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6637843CA0 for ; Sat, 16 Dec 2006 16:26:58 +0000 (GMT) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by regulus.dfwlp.com (8.13.6/8.13.6) with ESMTP id kBGGQq6P039382 for ; Sat, 16 Dec 2006 10:26:52 -0600 (CST) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Sat, 16 Dec 2006 10:26:51 -0600 User-Agent: KMail/1.9.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612161026.51929.freebsd@dfwlp.com> X-Spam-Status: No, score=-1.4 required=3.6 tests=ALL_TRUSTED autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on regulus.dfwlp.com Subject: Re: Need explaination for `date` command ! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2006 16:26:59 -0000 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