From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta9.adelphia.net ([68.168.78.199]) by speech.braille.uwo.ca with esmtp (Exim 3.35 #1 (Debian)) id 1A6bun-00074d-00 for ; Mon, 06 Oct 2003 16:25:10 -0400 Received: from beavis ([24.49.58.24]) by mta9.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20031006202439.JVKU23807.mta9.adelphia.net@beavis> for ; Mon, 6 Oct 2003 16:24:39 -0400 From: "Jacob Schmude" To: "speakup@braille.uwo.ca" Date: Mon, 06 Oct 2003 16:29:50 -0400 Priority: Normal X-Mailer: PMMail 2000 Professional (2.20.2717) For Windows 2000 (5.0.2195;4) In-Reply-To: <20031006194817.GA17428@romuald.net.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: My Clock Is Confused X-Antivirus: avast! (VPS 10/3/2003), Outbound message X-Antivirus-Status: Clean Message-Id: <20031006202439.JVKU23807.mta9.adelphia.net@beavis> Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: Hi Actually, there is a way to do it separately. Use the s switch to date. The format is: date -s year-mm-dd to set the date. Taking your provided example, it would look like: date -s 2003-10-06 After that, you set the time in 24-hour format like this: date -s hh:mm:ss Again, taking your example, you would use: date -s 14:40 Note that specifying the seconds is not necessary, but you can if you want. I've often found this easier than combining the two, especially when I only need to set one of them. HTH On Mon, 6 Oct 2003 14:48:17 -0500, Gregory Nowak wrote: >Yeah, the syntax of date is pretty weird. > >In a nutshell, you want to pass 8 digits to the date command >Digits 1 and 2 specify the month (I.E. 10 for October). > >Digits 3 and 4 specify the day (I.E. 06 for the 6th day of the month). > >Digits 5 and 6 specify the hour (I.E. 14 for 2 P.M.) (remember that >you're dealing with a 24 hour clock here). It's possible to specify >the hour in 12 hour format with an A or P at the end of the number >string, but I've always used 24 hour format for this, so haven't tried >the A or P myself. > >The final 7 and 8 digits specify the minute (I.E. 40 for the 40th >minute). > >So, for example, if you wanted to set your clock to October 06th, >14:40, you would do as root >"date 10061440" >and that should do it, preserving whatever time zone you've got set at >the time. What I mean by that, is that only the hour/minute will >change, but your time zone won't. >