author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Thu, 26 Mar 2009 22:37:45 +0200 | |
changeset 53 | d196e99343ee |
parent 38 | 77d9646ec70b |
child 74 | a228e365a16b |
permissions | -rw-r--r-- |
35 | 1 |
-*- outline -*- |
2 |
||
3 |
* Getting current date/time. |
|
4 |
||
5 |
$ date +"%Y-%m-%d %H:%M:%S" |
|
6 |
||
7 |
* Setting current date/time. |
|
8 |
||
9 |
$ sudo date --set="2009-02-22 12:12:00" +"%Y-%m-%d %H:%M:%S" |
|
10 |
||
36
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
11 |
Or set utc time: |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
12 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
13 |
$ sudo date --utc --set="2009-02-22 12:12:00" +"%Y-%m-%d %H:%M:%S" |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
14 |
|
38
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
15 |
May be prefer use ntpdate(8) command. |
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
16 |
|
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
17 |
* Get timezone. |
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
18 |
|
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
19 |
System wide configuration: |
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
20 |
|
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
21 |
$ cat /etc/timezone |
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
22 |
|
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
23 |
* Get list of cupported timezone. |
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
24 |
|
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
25 |
$ tzselect |
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
26 |
|
77d9646ec70b
Explore timezone theme.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
36
diff
changeset
|
27 |
* Set timezone. |
36
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
28 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
29 |
$ sudo tzconfig |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
30 |
Your current time zone is set to Europe/Kiev |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
31 |
Do you want to change that? [n]: y |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
32 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
33 |
Please enter the number of the geographic area in which you live: |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
34 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
35 |
1) Africa 7) Australia |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
36 |
2) America 8) Europe |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
37 |
3) US time zones 9) Indian Ocean |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
38 |
4) Canada time zones 10) Pacific Ocean |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
39 |
5) Asia 11) Use System V style time zones |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
40 |
6) Atlantic Ocean 12) None of the above |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
41 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
42 |
Number: 8 |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
43 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
44 |
Then you will be shown a list of cities which represent the time zone |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
45 |
in which they are located. You should choose a city in your time zone. |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
46 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
47 |
Amsterdam Andorra Athens Belfast Belgrade Berlin Bratislava Brussels |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
48 |
Bucharest Budapest Chisinau Copenhagen Dublin Gibraltar Guernsey Helsinki |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
49 |
Isle_of_Man Istanbul Jersey Kaliningrad Kiev Lisbon Ljubljana London |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
50 |
Luxembourg Madrid Malta Mariehamn Minsk Monaco Moscow Nicosia Oslo Paris |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
51 |
Podgorica Prague Riga Rome Samara San_Marino Sarajevo Simferopol Skopje |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
52 |
Sofia Stockholm Tallinn Tirane Tiraspol Uzhgorod Vaduz Vatican Vienna |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
53 |
Vilnius Volgograd Warsaw Zagreb Zaporozhye Zurich |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
54 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
55 |
Please enter the name of one of these cities or zones |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
56 |
You just need to type enough letters to resolve ambiguities |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
57 |
Press Enter to view all of them again |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
58 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
59 |
Name: [] Kiev |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
60 |
|
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
61 |
Your default time zone is set to 'Europe/Kiev'. |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
62 |
Local time is now: Sun Feb 22 12:40:16 EET 2009. |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
63 |
Universal Time is now: Sun Feb 22 10:40:16 UTC 2009. |
d9f385e0aa04
How setup timezone.
"Oleksandr Gavenko <gavenkoa@gmail.com>"
parents:
35
diff
changeset
|
64 |
Your current time zone is set to Europe/Kiev |