From owner-freebsd-questions Sat Nov 13 4:46: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rp-plus.de (clubserv.rp-online.de [149.221.232.11]) by hub.freebsd.org (Postfix) with ESMTP id 6F8B6150FE for ; Sat, 13 Nov 1999 04:45:57 -0800 (PST) (envelope-from alex@cichlids.com) Received: from neutron.cichlids.com (as8-pri43.rp-plus.de [149.221.239.171]) by mail.rp-plus.de (8.9.1a/8.9.1) with ESMTP id NAA13232; Sat, 13 Nov 1999 13:44:53 +0100 (MET) Received: from cichlids.cichlids.com (root@cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (8.9.3/8.9.1) with ESMTP id NAA57398; Sat, 13 Nov 1999 13:44:54 +0100 (CET) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id NAA05326; Sat, 13 Nov 1999 13:44:59 +0100 (CET) (envelope-from alex) From: Alexander Langer Date: Sat, 13 Nov 1999 13:44:59 +0100 To: bunny Cc: freebsd Subject: Re: HOW TO CHANGE THE DATE IN UNIX Message-ID: <19991113134459.B5188@cichlids.cichlids.com> References: <004701bf2dd3$4066ede0$f30582cb@intel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <004701bf2dd3$4066ede0$f30582cb@intel>; from bunny@super.net.pk on Sat, Nov 13, 1999 at 05:33:04PM +0500 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake bunny (bunny@super.net.pk): > I know this is the help site for FreeBSD. Please if you could just tell me on how to change the date in UNIX machine . I have tried all the methods. There is something which i am not doing right. If some one could help me I would really appreciate it. > Please give me an evample of Jan 13, 2000 read date(1)! There is: SYNOPSIS date [-jnu] [-d dst] [-r seconds] [-t minutes_west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[yy]mm]dd]HH]MM[.ss]] [+format] to set the date, use 000113HHMM.SS Where HHMM.SS is the time (hour, minutes, seconds) POSIX (I believe) sets the years "00-38" to be 2000-2038 and the years "70-99" to be 1970-1999. 39-69 are unspecified. BTW: We don't have Jan 13, 2000 now. If you want to set the current time, you might want to check out "ntpdate", which is in the ports. Alex -- I doubt, therefore I might be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message