The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 06:22 PM
Setting up NFS system syedifti UNIX for Dummies Questions & Answers 1 11-28-2001 10:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2009
qneill qneill is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 23
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
  #2 (permalink)  
Old 03-11-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0