Set the time machine Linux server

Discussion in 'Installation/Configuration' started by baanmaha, Oct 21, 2010.

  1. baanmaha

    baanmaha New Member

    This is the quick and dirty solution...

    To display the current date/time

    HTML:
    $ date   << check date/time
    To set the date/time

    HTML:
    $ sudo date MMDDhhmmYYYY << Example command
    Example:

    HTML:
    $ sudo date 021520302009  << Use
    Linux Set Time

    To set time use the following syntax:
    # date +%T -s "10:13:13"
    Where,

    HTML:
        * 10: Hour (hh)
        * 13: Minute (mm)
        * 30: Second (ss)
    Use %p locale’s equivalent of either AM or PM, enter:
    HTML:
    # date +%T%p -s "6:10:30AM"
    # date +%T%p -s "12:10:30PM"
     

Share This Page