Sponsored Content
Full Discussion: DST Change For Australia
Top Forums Shell Programming and Scripting DST Change For Australia Post 302116627 by jim mcnamara on Monday 7th of May 2007 07:39:23 AM
Old 05-07-2007
/usr/share/lib/zoneinfo/Australia/<timezone name>

Can you find a NSW file in the zoneinfo directory? It sounds like it is not there. Or maybe it has some issues, possibly protection.

Plus, DO NOT set time back and forth like that, you can cause cron jobs to do unexpected things. And mess up nightly processing.

UNIX time is kept in seconds since Jan 1 1970. Daylight time changes do not change that count. Changing the date does. The system uses files in /usr/share/lib/zoneinfo/Australia/.... to display the time based on UTC calculated from the number of seconds.

You should set the date (in seconds) to match UTC, whatever that may be.
However use date -a to do that, it is less likely to screw up batch jobs.

You can manually set the timezone using the results of tzselect. It asks questions. tzdump should let you see what /usr/share/lib/zoneinfo/Australia/NSW thinks about DST, if the file is okay.

Last edited by jim mcnamara; 05-07-2007 at 09:01 AM..
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

confused in australia

hi! i have a lot of files (800+) (in windows format - i.e. they have spaces in the filename) that i need to copy to disk... if i write a for loop to ls the files and copy it fails as the file it trys to read is just the 1st part of the file (which of course doesnt exist)... i dont want to... (4 Replies)
Discussion started by: serm
4 Replies

2. AIX

Australia NSW DST

Hello. Our application is running on AIX box located in NSW , Australia. As DST starts on Oct 28th - Do you know IF AIX boxes have auto updates of day light saving times? IF not , how to do it? IF yes, where can I verify it? Thank you! (3 Replies)
Discussion started by: panchpan
3 Replies

3. Linux

DST Time Change for positive timezones not working

I was doing timezone and DST testing which is required for some of my products Here is the strange behaviour i observed First i did set the timezone to PST 2010 (which is less than GMT basically negative timezone) zdump -v /etc/localtime |grep 2010 /etc/localtime Sun Mar 14 09:59:59... (0 Replies)
Discussion started by: ravindra1103
0 Replies

4. HP-UX

DST change on Compaq Tru64

Hello all, I hope someone can help me. We have Compaq Tru64 UNIX V5.1B (Rev. 2650). By latest Belarus government act Europe/Minsk timezone was changed to GMT+3 without DST (was GMT+2 with DST). Please advice how to do changes on our machine. Thank You in advance, md1982 (15 Replies)
Discussion started by: md1982
15 Replies

5. AIX

Bug in AIX 6.1/7.1 Time Zone DST Change -again

Hi Everyone Just wanted to share with you that IBM AIX is having again problem with Summer Time Shift.. IBM Possible Action Required: System time may not change properly at DST start/end dates on AIX 7.1 and AIX 6.1 - United States For me it means some additional overtimes in the... (0 Replies)
Discussion started by: gito
0 Replies

6. AIX

Change Time Zone to UTC without DST

Hello AIX friends, We have timezone settings on our AIX 6.1 boxes set to Europe/London. How can I change it to UTC timezone with Daylight saving disabled. After running "smit chtz_user" I don't see UTC option in the listing. Please advise. TIA (3 Replies)
Discussion started by: prvnrk
3 Replies
zdump(1M)						  System Administration Commands						 zdump(1M)

NAME
zdump - time zone dumper SYNOPSIS
zdump [-v] [-c cutoffyear] [zonename...] DESCRIPTION
The zdump command prints the current time for each time zone (zonename) listed on the command line. Specify zonename as the name of the time zone database file relative to /usr/share/lib/zoneinfo. Specifying an invalid time zone (zonename) to zdump does not return an error, rather zdump uses GMT. This is consistent with the behav- ior of the library calls; zdump reflects the same behavior of the time routines in libc. See ctime(3C) and mktime(3C). OPTIONS
The following options are supported: -v Displays the entire contents of the time zone database file for zonename. Prints the time at the lowest possible time value; the time one day after the lowest possible time value; the times both one second before and exactly at each time at which the rules for computing local time change; the time at the highest possible time value; and the time at one day less than the highest possible time value. See mktime(3C) and ctime(3C) for information regarding time value (time_t). Each line of output ends with isdst=1 if the given time is Daylight Saving Time, or isdst=0 otherwise. -c cutoffyear Cuts off the verbose output near the start of the year cutoffyear. EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 An error occurred. FILES
/usr/share/lib/zoneinfo Standard zone information directory ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
zic(1M), ctime(3C), mktime(3C), attributes(5), environ(5) SunOS 5.10 19 May 1997 zdump(1M)
All times are GMT -4. The time now is 07:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy