public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: "Jacob Schmude" <jschmude@adelphia.net>
To: "speakup@braille.uwo.ca" <speakup@braille.uwo.ca>
Subject: Re: My Clock Is Confused
Date: Mon, 06 Oct 2003 16:29:50 -0400	[thread overview]
Message-ID: <20031006202439.JVKU23807.mta9.adelphia.net@beavis> (raw)
In-Reply-To: <20031006194817.GA17428@romuald.net.eu.org>

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.
>




  parent reply	other threads:[~ UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Rejean Proulx
 ` William F. Acker WB2FLW +1-303-722-7209
   ` Rejean Proulx
     ` Kenny Hitt
       ` Rejean Proulx
         ` Gregory Nowak
           ` Patrick Turnage
             ` Gregory Nowak
           ` gena-j
             ` Rejean Proulx
               ` gena-j
               ` Igor Gueths
             ` Rejean Proulx
           ` Jacob Schmude [this message]
             ` Gregory Nowak
     [not found]       ` <005701c38c30$b69c20b0$6501a8c0@ism.can <20031006194817.GA17428@romuald.net.eu.org>
         ` Rejean Proulx
           ` Gregory Nowak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031006202439.JVKU23807.mta9.adelphia.net@beavis \
    --to=jschmude@adelphia.net \
    --cc=speakup@braille.uwo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).