WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tzdata  (Read 11040 times)

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
tzdata
« on: July 19, 2009, 02:04:16 PM »
Thanks to robc for:

Code: [Select]
Title:          tzdata.tcel
Description:    Time Zone Data (TESTING)
Version:        2009
Author:         Arthur David Olson
Original-site:  ftp://elsie.nci.nih.gov/pub/
Copying-policy: Public Domain
Size: 497.4k
Extension_by:   robc
Comments: This package requires bash and gawk.

Includes tzdata2009j and tzcode2009i.

----------------------------------------------

Please see the man page for additional
information.

Also see ftp://elsie.nci.nih.gov/pub/
for more information.

----------------------------------------------

This extension is PPI compatible.

Change-log:     2009/07/17 Original
Current: 2009/07/17 Original


Code: [Select]
Title:          tzdata.tczl
Description:    Time Zone Data (TESTING)
Version:        2009
Author:         Arthur David Olson
Original-site:  ftp://elsie.nci.nih.gov/pub/
Copying-policy: Public Domain
Size: 444k
Extension_by:   robc
Comments: This package requires bash and gawk.

Includes tzdata2009j and tzcode2009i.

----------------------------------------------

Please see the man page for additional
information.

Also see ftp://elsie.nci.nih.gov/pub/
for more information.

----------------------------------------------

This extension is PPI compatible.

Change-log:     2009/07/17 Original
Current: 2009/07/17 Original


Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: tzdata
« Reply #1 on: October 10, 2009, 02:41:06 AM »
I'm having a struggle with getting my time zone to work correctly... what is this man page that is mentioned? I searched at linux man pages but nothing for tzdata or tz.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: tzdata
« Reply #2 on: October 10, 2009, 02:57:06 AM »
You can use only the data in this extension, without the tzselect script. Of course tzselect does help you in finding the right file.
Just copy the right timezone file as /etc/localtime, add /etc/localtime to backup. After that, the extension is not needed.

Since the data is in /usr/local, I don't think just setting TZ would work.
The only barriers that can stop you are the ones you create yourself.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tzdata
« Reply #3 on: October 10, 2009, 08:04:20 AM »
Don't forget it is simpe to set timezone via TZ without the need of an extension, just the base Tiny Core.
See: http://www.tinycorelinux.com/faq.html#timezone
« Last Edit: October 10, 2009, 08:08:17 AM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: tzdata
« Reply #4 on: October 10, 2009, 02:49:21 PM »
Thanks for that reference! I had seen it before but I have seen so many other things that I forget... :P

I have tried tz=GMT-11 but it doesn't work.

Is there a reference where the various codes are listed? I am in Melbourne Australia; we have DST and the local time is dubbed EST (eastern standard time). I am unsure how to construct a code from your example: here is a crack at it, assuming EST will be recognised:

tz=EST,M10.1.0/2,M4.1.0/2  (not sure what the +8PDT means in your example...?

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: tzdata
« Reply #5 on: October 10, 2009, 02:53:57 PM »
Just rebooted and the time seems to be correct.  ;D

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: tzdata
« Reply #6 on: October 10, 2009, 04:53:54 PM »
To use the tzdata information from the boot options line you need to specify the full path to the tz file, i.e. tz=/usr/local/share/zoneinfo/Australia/Melbourne

In my remasters I put the /usr/local/share/zoneinfo/ part in the tc-config file so only Australia/Melbourne would be needed, but that requires a remaster.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: tzdata
« Reply #7 on: November 13, 2009, 04:54:24 AM »
Thanks to robc for an update:

Code: [Select]
Title:          tzdata.tczl
Description:    Time Zone Data (TESTING)
Version:        2009r/2009r
Author:         Arthur David Olson
Original-site:  ftp://elsie.nci.nih.gov/pub/
Copying-policy: Public Domain
Size: 640k
Extension_by:   robc
Comments: This package requires bash and gawk.

Includes tzdata2009r and tzcode2009r.

----------------------------------------------

Please see the man page for additional
information.

Also see ftp://elsie.nci.nih.gov/pub/
for more information.

----------------------------------------------

This extension is PPI compatible.

Change-log:     2009/07/17 Original
2009/11/12 Updated to tzdata2009r and tzcode2009r
Current: 2009/11/12 Updated to tzdata2009r and tzcode2009r


Offline reidi

  • Newbie
  • *
  • Posts: 13
Re: tzdata
« Reply #8 on: December 25, 2009, 02:35:18 PM »
Don't forget it is simpe to set timezone via TZ without the need of an extension, just the base Tiny Core.
See: http://www.tinycorelinux.com/faq.html#timezone

This is both useful and useless information, because the author neglected to indicate where TZ should be set.  IMHO this should not be assumed knowledge.


Please excuse the rudeness borne of frustration above.  As roberts points out, on http://www.tinycorelinux.com/faq.html#bootcodes, the section "What Bootcodes does Tiny Core Support?" does explain how to use TZ.  I did not understand that from the section "How To Timezone?" on the same page, yet it clearly states "For example mine tz boot code is:...".
« Last Edit: December 25, 2009, 04:55:47 PM by reidi »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tzdata
« Reply #9 on: December 25, 2009, 03:19:13 PM »
Your negative comment aside..
tz was made to be used as boot code as shown by:
http://www.tinycorelinux.com/faq.html#bootcodes
Code: [Select]
tinycore tz=GMT+8                   Timezone tz=PST+8PDT,M4.2.0/2,M11.1.0/2
Your course you can do as you please and ignore its intended use as a boot code.


10+ Years Contributing to Linux Open Source Projects.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: tzdata
« Reply #10 on: December 27, 2009, 11:12:12 PM »
For those who would like to create their own POSIX TZ string I want to mention a page which once helped me as I needed to adjust my VOIP gateway: http://leaf.sourceforge.net/doc/buci-tz.html
It also contains a link to the "official" reference (which might be better reading for some).

OTOH one could execute "tail -1 FILENAME" where FILENAME is choosen from the files in /usr/local/share/zoneinfo (obviously after installing the tzdata extension at least once).

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: tzdata
« Reply #11 on: March 11, 2010, 09:25:19 AM »
Thanks to robc for an update:

Code: [Select]
Title:          tzdata.tcz
Description:    Time Zone Data (TESTING)
Version:        2010c/2010e
Author:         Arthur David Olson
Original-site:  http://www.twinsun.com/tz/tz-link.htm
Copying-policy: Public Domain
Size: 656K
Extension_by:   robc
Comments: This package requires bash and gawk.

Includes tzcode2010c and tzdata2010e.

Use the full path at the boot prompt, ie:
TZ=/usr/local/share/zoneinfo/US/Pacific

----------------------------------------------

Please see the man page for additional
information.

Also see http://www.twinsun.com/tz/tz-link.htm
for more information.

----------------------------------------------

This extension is PPI compatible.

Change-log:     2009/07/17 Original
2009/11/12 Updated to tzdata2009r and tzcode2009r
2010/03/10 Updated to tzcode2010c and tzdata2010e
Current: 2010/03/10 Updated to tzcode2010c and tzdata2010e


Offline Jeff W

  • Newbie
  • *
  • Posts: 5
Re: tzdata
« Reply #12 on: March 22, 2010, 02:30:31 PM »
Forgive my question but I'm an inquisitive idiot.  Is there a method to change the timezone while operating and have it persist without rebooting with tz set as a boot parameter?
If at first you don't suceed skydiving is not for you.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: tzdata
« Reply #13 on: March 22, 2010, 04:19:43 PM »
Copy the correct zone file from the the tzdata extension to /etc/localtime.
Add etc/localtime to /opt/.filetool.lst.
Edit .profile, and add 'unset TZ'
Backup
Reboot

Offline Jeff W

  • Newbie
  • *
  • Posts: 5
Re: tzdata
« Reply #14 on: March 23, 2010, 07:33:40 AM »
Let me be clear.  LOL  Is there a method to change the timezone while operating and have it take the change immediately without requiring a reboot?  I think I understand what changes are necessary to have it persist past reboot. 
If at first you don't suceed skydiving is not for you.