equal
deleted
inserted
replaced
52 ... |
52 ... |
53 |
53 |
54 ** Debian Lenny. |
54 ** Debian Lenny. |
55 |
55 |
56 $ sudo dpkg-reconfigure tzdata |
56 $ sudo dpkg-reconfigure tzdata |
|
57 |
|
58 * About timestamp. |
|
59 |
|
60 http://en.wikipedia.org/wiki/Timestamp |
|
61 http://en.wikipedia.org/wiki/Unix_time |
|
62 http://en.wikipedia.org/wiki/Leap_second |
|
63 |
|
64 ** Get timestamp. |
|
65 |
|
66 Current timestamp: |
|
67 |
|
68 $ date +%s |
|
69 |
|
70 Timestamp for specific date/time: |
|
71 |
|
72 $ date -d '2010-12-11' +%s |
|
73 $ date -d '2010-12-11 23:59:59' +%s |
|
74 |
|
75 ** Convert unix timestamp to date. |
|
76 |
|
77 $ date -d '1970-01-01 + 1234567890 seconds' |
|
78 |