![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How Can I find these system setting | alert0919 | HP-UX | 3 | 12-02-2008 02:40 PM |
| Compare date from db2 table to yesterday's Unix system date | sasaliasim | Shell Programming and Scripting | 9 | 12-01-2008 11:37 PM |
| Setting Environment Variable date | d3ck_tm | High Level Programming | 6 | 11-08-2006 06:33 AM |
| setting date and time | singlefin | UNIX for Dummies Questions & Answers | 2 | 06-12-2002 07:22 PM |
| Setting up NFS system | syedifti | UNIX for Dummies Questions & Answers | 1 | 11-28-2001 10:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
setting the system date
Okay so I'm not really a newbie, but this bugs the crap out of me (rant on).
Every so often I need to change the system time. I run "man date" and always find the "date -s" command, but for who knows how long, the manual page has *never* listed the format of the input string required to set the date. I eventually remember to run "info date" and get to a usable example. That leaves me with 1) why doesn't the man page specify this format 2) why doesn't the man page even mention that you can do things like date --set='+2 minutes' Okay, rant off. Oh, and any of you Unix-heads out there know why things are this way in a relatively mundane manual page? -- Quentin |
|
||||
|
The manpage for GNU date seems straightforward enough: Code:
DATE(1) User Commands DATE(1)
NAME
date - print or set the system date and time
SYNOPSIS
date [OPTION]... [+FORMAT]
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
DESCRIPTION
Display the current time in the given FORMAT, or set the system date.
...
Though it does not mention the '+2 minutes' thing either. The GNU tools are occasionally evangelical about telling you to use their special fancy 'info' command instead of old-fashioned 'man' -- really old fashioned, dating from the late 70's! A habit I find detestable considering how little an improvement the 'info' system really seems to be on it. If they want sections and hyperlinks they should just do real HTML, bundle lynx, and be done with it. Last edited by Corona688; 03-11-2009 at 11:46 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|