My Clock Is Confused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, that's a bit less combersum. Guess date is still a mystery
even to non-newbies (grin).

Greg


On Mon, Oct 06, 2003 at 04:29:50PM -0400, Jacob Schmude wrote:
> 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

-- 
Free domains: http://www.eu.org/ or mail dns-manager at EU.org





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux