date.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 26 Mar 2009 22:48:02 +0200
changeset 55 4e65a262e821
parent 38 77d9646ec70b
child 74 a228e365a16b
permissions -rw-r--r--
How convert .3gp to .avi(mpeg)?

-*- outline -*-

* Getting current date/time.

  $ date +"%Y-%m-%d %H:%M:%S"

* Setting current date/time.

  $ sudo date --set="2009-02-22 12:12:00" +"%Y-%m-%d %H:%M:%S"

Or set utc time:

  $ sudo date --utc --set="2009-02-22 12:12:00" +"%Y-%m-%d %H:%M:%S"

May be prefer use ntpdate(8) command.

* Get timezone.

System wide configuration:

  $ cat /etc/timezone

* Get list of cupported timezone.

  $ tzselect

* Set timezone.

  $ sudo tzconfig
Your current time zone is set to Europe/Kiev
Do you want to change that? [n]: y

Please enter the number of the geographic area in which you live:

    1) Africa           7) Australia
    2) America          8) Europe
    3) US time zones    9) Indian Ocean
    4) Canada time zones 10) Pacific Ocean
    5) Asia             11) Use System V style time zones
    6) Atlantic Ocean   12) None of the above

Number: 8

Then you will be shown a list of cities which represent the time zone
in which they are located. You should choose a city in your time zone.

Amsterdam Andorra Athens Belfast Belgrade Berlin Bratislava Brussels
Bucharest Budapest Chisinau Copenhagen Dublin Gibraltar Guernsey Helsinki
Isle_of_Man Istanbul Jersey Kaliningrad Kiev Lisbon Ljubljana London
Luxembourg Madrid Malta Mariehamn Minsk Monaco Moscow Nicosia Oslo Paris
Podgorica Prague Riga Rome Samara San_Marino Sarajevo Simferopol Skopje
Sofia Stockholm Tallinn Tirane Tiraspol Uzhgorod Vaduz Vatican Vienna
Vilnius Volgograd Warsaw Zagreb Zaporozhye Zurich

Please enter the name of one of these cities or zones
You just need to type enough letters to resolve ambiguities
Press Enter to view all of them again

Name: [] Kiev

Your default time zone is set to 'Europe/Kiev'.
Local time is now:      Sun Feb 22 12:40:16 EET 2009.
Universal Time is now:  Sun Feb 22 10:40:16 UTC 2009.
Your current time zone is set to Europe/Kiev