Other Help Topics :: ntp time server select ?



Quote
Why not remaster then with your file?

- I tried copying the time file for GMT+4 to /opt and renaming it "localtime", then:
Code Sample
$ sudo gettime.lua
Requesting time from: time-nw.nist.gov
Sat Mar  1 17:59:50 UTC 2008

At 21:59 local time, this set the clock to 00:59pm - not being used to this am/pm stuff, I'm not totally sure whether that means 12:59 or 00:59. Anyway, it isn't 21:59...

Afaik, am/pm does not have 00: and only 12:
so something could be wrong...?

DSL uses zoneinfo files.
You can find a complete list here/

DSL also has zump and zic needed to process/setup zoneinfo files.

Download tzdata2007k.tar.gz to a working directory, unpack,  and then use zic  to convert to a format Linux/DSL uses.

You can "grep -i" to search for your location in the various regions (after you have unpacked them).
Once you use zic they will no longer be readable.

HTH



isn't localtime supposed to be in /etc by the way?
Quote
Afaik, am/pm does not have 00: and only 12:
so something could be wrong...?

- it actually said a couple of minutes later - 01:01pm - so the mistake was made by me subtracting a couple of minutes to "avoid confusion".

Quote
isn't localtime supposed to be in /etc by the way?

- well:

/usr/share/zoneinfo/localtime -> /etc/localtime
and
/etc/timezone -> /KNOPPIX/etc/timezone -> /opt/timezone

...so I wasn't sure which one to use. I guess /opt/timezone uses the bootcode? Which one should I add to my backup (assuming I ever get this to work)?

Quote
DSL uses zoneinfo files.
You can find a complete list here/

DSL also has zump and zic needed to process/setup zoneinfo files.

Download tzdata2007k.tar.gz to a working directory, unpack,  and then use zic  to convert to a format Linux/DSL uses.

You can "grep -i" to search for your location in the various regions (after you have unpacked them).
Once you use zic they will no longer be readable.

- I thought GMT+4 was a zoneinfo file, it is included in the latest tzdata2007k.tar.gz file from your link (thanks BTW). Also from tzdata2007k.tar.gz:
Quote
# We use POSIX-style signs in the Zone names and the output abbreviations,
# even though this is the opposite of what many people expect.
# POSIX has positive signs west of Greenwich, but many people expect
# positive signs east of Greenwich.  For example, TZ='Etc/GMT+4' uses
# the abbreviation "GMT+4" and corresponds to 4 hours behind UTC
# (i.e. west of Greenwich) even though many people would expect it to
# mean 4 hours ahead of UTC (i.e. east of Greenwich).

- which explains some of my confusion...

I tried zic and zdump, but didn't get the hang of the syntax yet:
Code Sample
$ sudo zic -l asia/placename

...doesn't seem to write the localtime file for "placename" and using only asia gives the whole nine yards in localtime and still in a readable format??

Next Page...
original here.