From owner-freebsd-questions Mon Jan 5 01:17:32 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA17533 for questions-outgoing; Mon, 5 Jan 1998 01:17:32 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA17518 for ; Mon, 5 Jan 1998 01:17:25 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id TAA22620; Mon, 5 Jan 1998 19:47:17 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id TAA12521; Mon, 5 Jan 1998 19:47:16 +1030 (CST) (envelope-from grog) Message-ID: <19980105194716.40370@lemis.com> Date: Mon, 5 Jan 1998 19:47:16 +1030 From: Greg Lehey To: Shawn Ramsey Cc: questions@FreeBSD.ORG Subject: Re: time? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: ; from Shawn Ramsey on Mon, Jan 05, 1998 at 02:03:45AM -0800 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Jan 05, 1998 at 02:03:45AM -0800, Shawn Ramsey wrote: > Pardon the amateur question, but how do you set the time? With date(1) > If the command is date if you could please give an example... Sure. It's Real Simple :-) To set just the time, say to 3:14 pm, enter # date 1514 Note the # prompt (you must be root), and the 24 hour clock. If you want to set the date as well, say to January 7, you *must* specify the time as well: # date 01071514 Then, you can set the year too: # date 9701071514 Sorry, you can't (currently) specify all four digits of the year. That's not that serious: for example, to set the year to 2002, you can enter: # date 0201071514 OK? Greg