Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:time_zone [2011/06/06 04:48] – created Guywiki:time_zone [2012/12/01 05:31] (current) – Last revision reverted. (Would lead to different result) tinypoodle
Line 1: Line 1:
 ====== Time Zone ====== ====== Time Zone ======
-===== Time Zone ===== 
-==== Time Zone ==== 
  
-I'd just like to expand a bit on the use of the 'tz' boot code to specify the local time zone (including the provision of daylight saving information). Please note that this is an alternative to copying a file to '/etc/localtime' and not to be used in conjunction with that approach. The following is merely my way of describing what is defined in the first link of Robert reply #15 (see above):+I'd just like to expand a bit on the use of the 'tz' boot code to specify the local time zone (including the provision of daylight saving information). Please note that this is an alternative to copying a file to '/etc/localtime' and not to be used in conjunction with that approach.
  
-(1) In the case of no daylight saving the boot code simply needs the name of the timezone and the offset to UTC. Example India:+==== Without Daylight Saving ==== 
 + 
 +In the case of no daylight saving the boot code simply needs the name of the timezone and the offset to UTC. Example India:
     tz=IST-5:30    i.e. India is 5h30 "ahead" of UTC, AFAIK 'IST' stands for "India Standard Time"     tz=IST-5:30    i.e. India is 5h30 "ahead" of UTC, AFAIK 'IST' stands for "India Standard Time"
  
-(2) Things get a bit more varied with daylight saving. The TZ definition now also adds the name of the timezone during daylight saving and the details when daylight saving starts and ends. Example France:  +==== With Daylight Saving ==== 
-    tz=CET-1CEST,M3.5.0,M10.5.0/ with the following components: + 
-       CET                          timezone name during standard time (i.e. "Central European Time"+Things get a bit more varied with daylight saving. The TZ definition now also adds the name of the timezone during daylight saving and the details when daylight saving starts and ends. Example France: 
-          -1                        offset during standard time (i.e. 1h "ahead"+ 
-            CEST                    timezone name during daylight saving (i.e. "Central European Summer Time"+  tz=CET-1CEST,M3.5.0,M10.5.0/ with the following components: 
-                  3                start of daylight saving: the month (i.e. March) +     CET                         timezone name during standard time (i.e. "Central European Time"
-                    5              the week (i.e. last) +        -1                       offset during standard time (i.e. 1h "ahead"
-                      0            the day (i.e. Sunday) +          CEST                   timezone name during daylight saving (i.e. "Central European Summer Time"
-                         10        end of daylight saving: the month (i.e. October) +                3                start of daylight saving: the month (i.e. March) 
-                            5      the week (i.e. last) +                  5              the week (i.e. last) 
-                              0    the day (i.e. Sunday) +                    0            the day (i.e. Sunday) 
-                                3  the time (i.e. 03:00:00)+                       10        end of daylight saving: the month (i.e. October) 
 +                          5      the week (i.e. last) 
 +                            0    the day (i.e. Sunday) 
 +                              3  the time (i.e. 03:00:00) 
 +                                                       
 Please note: Since no time is specified for the start of CEST the default value of 02:00:00 will be used.  Please note: Since no time is specified for the start of CEST the default value of 02:00:00 will be used. 
  
Line 25: Line 29:
  
 If your are still not keen to create your very own TZ string you can cheat by taking a peek in the (binary) zoneinfo files of the tzdata.tcz extension. Please note that in the following steps (using London as an example) the extension gets merely downloaded (to the home directory), extracted and right away removed again. So nothing remains afterwards. Let's face it, you probably need to find out your local TZ definition only a few times in your life (e.g. when you move or your daylight saving timeframe changes): If your are still not keen to create your very own TZ string you can cheat by taking a peek in the (binary) zoneinfo files of the tzdata.tcz extension. Please note that in the following steps (using London as an example) the extension gets merely downloaded (to the home directory), extracted and right away removed again. So nothing remains afterwards. Let's face it, you probably need to find out your local TZ definition only a few times in your life (e.g. when you move or your daylight saving timeframe changes):
-Code: + 
-tc@box:~$ tce-fetch.sh tzdata.tcz+<code>tc@box:~$ tce-fetch.sh tzdata.tcz
 tc@box:~$ mkdir ext tc@box:~$ mkdir ext
 tc@box:~$ sudo mount tzdata.tcz ext -t squashfs -o loop,ro,bs=4096 tc@box:~$ sudo mount tzdata.tcz ext -t squashfs -o loop,ro,bs=4096
Line 32: Line 36:
 GMT0BST,M3.5.0/1,M10.5.0 GMT0BST,M3.5.0/1,M10.5.0
 tc@box:~$ umount ext tc@box:~$ umount ext
-tc@box:~$ rm -rf ext tzdata.tcz+tc@box:~$ rm -rf ext tzdata.tcz</code> 
 If you are not sure about the city to specify in the 'find' command, have a look around the files in the 'zoneinfo' directory (and it's sub-directories) and just use 'tail -1 FILE' for the FILE that best fits your needs. If you are not sure about the city to specify in the 'find' command, have a look around the files in the 'zoneinfo' directory (and it's sub-directories) and just use 'tail -1 FILE' for the FILE that best fits your needs.
  
 From: http://forum.tinycorelinux.net/index.php?topic=5017.msg27012#msg27012 From: http://forum.tinycorelinux.net/index.php?topic=5017.msg27012#msg27012
Print/export
QR Code
QR Code wiki:time_zone (generated for current page)