From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cpc2-nthc4-6-0-cust128.nrth.cable.ntl.com ([81.101.118.128] helo=magnolia) by speech.braille.uwo.ca with esmtp (Exim 3.35 #1 (Debian)) id 1A6bfa-0006uV-00 for ; Mon, 06 Oct 2003 16:09:28 -0400 Received: from gena (helo=magnolia) by magnolia with local-esmtp (Exim 3.36 #1 (Debian)) id 1A6bfT-0000Yt-00 for ; Mon, 06 Oct 2003 21:09:19 +0100 From: gena-j@ntlworld.com To: speakup@braille.uwo.ca Subject: Re: My Clock Is Confused In-reply-to: Your message of Mon, 06 Oct 2003 14:48:17 -0500. <20031006194817.GA17428@romuald.net.eu.org> Date: Mon, 06 Oct 2003 21:09:19 +0100 Message-Id: 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 Or you could simply install a package that gets the time from a ntp server such as chrony or ntp. There are plenty of open access servers around the world. Gena >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. > >Wonder why they didn't implement the date and time changes separately >in unix, would have sure made things less confusing for newbies to >learn. > >Hth. > >Greg > >P.S., once you've got this set, you won't need to worry about it, >assuming your cmos battery has charge of course to keep the clock >going when your machine is off. > >On Mon, Oct 06, 2003 at 01:38:50PM -0400, Rejean Proulx wrote: >> OK, I've done that and it was correct. Now I have to reset my clock. I ran >> base-config, just the first part of it and told it that my clock is not UTC. >> Now I am 4 hours behind. If I tell it my hardware clock is UTC then it puts >> me 4 hours ahead. How to I reset the clock to the right time and run a >> program to keep it that way? I tried the date command and the parameters >> are strange. I haven't been able to get it right yet. >> >> Rejean Proulx >> Visit my family at http://interfree.ca >> MSN is: rejp@rogers.com >> Ham License VA3REJ >> > >-- >Free domains: http://www.eu.org/ or mail dns-manager@EU.org > > >_______________________________________________ >Speakup mailing list >Speakup@braille.uwo.ca >http://speech.braille.uwo.ca/mailman/listinfo/speakup