From owner-freebsd-questions@FreeBSD.ORG Tue Dec 19 01:05:11 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 A529216A407 for ; Tue, 19 Dec 2006 01:05:11 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D5A143C9F for ; Tue, 19 Dec 2006 01:05:11 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id kBJ11wlH021032; Mon, 18 Dec 2006 20:01:58 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id kBJ11wLA021031; Mon, 18 Dec 2006 20:01:58 -0500 (EST) (envelope-from jerrymc) Date: Mon, 18 Dec 2006 20:01:58 -0500 From: Jerry McAllister To: Supote Leelasuppakorn Message-ID: <20061219010158.GA20922@gizmo.acns.msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org 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: Tue, 19 Dec 2006 01:05:11 -0000 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"