FAQs»Basic System Information»Date and Time Change on UNIX
  • RSS Feed

Last modified on 10/4/2015 11:53 AM by User.

Tags:

Date and Time Change on UNIX

To change the date and/or time on computer systems using the UNIX operating system, log in as "root" and use the date command.  To do this, follow the instructions below:

 

  1. Go to the main module list of Profits Plus, use CTRL-C then press the ENTER key to go out to the "$" prompt. 
  2. At the $ prompt, type:  su root
  3. Press the ENTER key.  The system then prompts for a password.  Enter the company password.

·       Do not be surprised if the password does not display on the screen as it is being typed in.

·       Be sure the caps lock is NOT on.

  1. Press the ENTER key again.  This procedure logs you in temporarily as "root".  This allows for permission to change the time/date.
  2. The system will now display a "#" (pound) sign next to the cursor.  Note: if the cursor does not appear next to a # sign, repeat the previous steps.
  3. At the # sign, type:  date      Then press the ENTER key.  This will give the current system date and time.
  4. To change the date and/or time, type:  date MMddhhmmyy    (Note: there is one blank space between "date" and "MM"
    • MM means month, dd means day, hh means hour, mm means minutes and yy means year.
    • Use 2 digits, even if a zero is needed as part of the number (i.e. January would be entered as 01)
    • The hour and minutes should be expressed in military time, using a 24-hour clock (i.e. 2:37 p.m. is entered as 14 for the hh and 37 for the mm)
    • Note:  the two digits for year (yy) are optional.  If the year is correct, the last two digits don't have to be entered.
  5. As an example, if the date and time needs to be reset to 5:15 p.m. on July 2, at the # sign type:     date 07021715        Then press the ENTER key.  (remember, there is one blank space between "date" and Month)

·       Note that no "/" is entered between the sets of digits.

·       If the year that appeared when the system's current date and time first came into view was incorrect, and it needs to be changed, then enter:                    date 0702171500       Then press the ENTER key. (remember, the one blank space after "date")

  1. Once again type:  date       and press the ENTER key.
  2. The new system date and time will be displayed.  Confirm that it has been set correctly.  If not, repeat the previous steps.
  3. If the date and time are correct, type:  exit    and press the ENTER key.
  4. This brings the system back to the $ prompt.  Type:  b     and press the ENTER key.  You will now be back at the main module list of Profits Plus.