Sponsored Content
Contact Us Post Here to Contact Site Administrators and Moderators Daylight Savings - Timezones etc... Post 17040 by peter.herlihy on Sunday 10th of March 2002 04:48:33 PM
Old 03-10-2002
The issue is that in my country - and I know this is so for other countries too - we have a daylight savings period for 6 months of the year.

So while we are normally GMT+12....during our Summer we are GMT+13. I select the normal TZ for my country from the settings - however it is currently wrong as it doesn't take the daylight savings into account.

It really is no biggie - as time in this forum is no real issue for me - but thought you may be interested to know.....
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Daylight savings and cron

I was trying to schedule a job to run on the last Sunday of October. To stop a process that I have running before daylight savings automatically falls back at 2AM then restart it after the hour has been regained. I thought I was smart (my mistake) and scheduled the 2 entries in cron. I figured that... (3 Replies)
Discussion started by: cindylouwho
3 Replies

2. Solaris

daylight savings change

I have a solaris 8 server - and I need to ensure the daylight savings change properly but I dont think its set up correctly: /usr/sbin/zdump -v -c 2005 $TZ GB-EIRE Wed Oct 26 12:20:02 2005 UTC = Wed Oct 26 12:20:02 2005 GB isdst=0 GB-EIRE Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52... (5 Replies)
Discussion started by: frustrated1
5 Replies

3. UNIX for Dummies Questions & Answers

Daylight savings change

Hey guys, How do i check and see if my server will automatically adjust itself for daylight savings? Thanks! (6 Replies)
Discussion started by: kingdbag
6 Replies

4. Solaris

Daylight Savings Time Fix

Hello, I've been looking at coming up with a time change on my Sun workstations since daylight savings time comes early this year. Someone at work told me that a sun patch is available if you have a maintenance contract. It was recommended to just set your systems to GMT time zone. How is this... (5 Replies)
Discussion started by: stocksj
5 Replies

5. Linux

Daylight savings patch for Linux?

Is there a patch availible for the upcoming new daylight savings time ordeal? (4 Replies)
Discussion started by: shorty
4 Replies

6. Solaris

Daylight Savings Time Quirk

I am running a SUN E450 on solaris (5.7). I have applied the DST patch and the system time is correct. However when users login the get the time wrong (+4 hours) (I am in EDT Zone). Does anyone know where a system wide variable for this could be set. (Root user gets the right time) Frank (3 Replies)
Discussion started by: frankkahle
3 Replies

7. AIX

Daylight savings time

Our aix unix box did not recognize daylight savings time since it was moved up. Could someone please give me the syntax to change the hour? I looked in man and couldn't find anything, or I missed it. I'm in 3rd grade so if you can, please provide specific instructions. Thanks! (2 Replies)
Discussion started by: vbagwell
2 Replies

8. AIX

Daylight savings time

Hello everyone The last sunday I have to check that my servers has change Daylight savings time but only two servers do it and all the rest doesnt. In smitty where I need to change, for my server take automatic the daylight savings time. Thanks for your tips The next its a message for... (0 Replies)
Discussion started by: lo-lp-kl
0 Replies

9. AIX

Timezone issues -- Daylight savings

Hello, I like to set the CDT timezone, but it shows CST still even after I activated the DayLight Time cat /etc/environment | grep TZ TZ=CST6CDT Now looking at date: root@test8:/>date Tue Dec 20 05:34:45 CST 2016 How can I make it from CST to CDT ? thanks (5 Replies)
Discussion started by: filosophizer
5 Replies
CTIME(3)						     Library Functions Manual							  CTIME(3)

NAME
ctime, localtime, gmtime, asctime, timezone, tzset - convert date and time to ASCII SYNOPSIS
void tzset() char *ctime(clock) time_t *clock; #include <time.h> char *asctime(tm) struct tm *tm; struct tm *localtime(clock) time_t *clock; struct tm *gmtime(clock) time_t *clock; char *timezone(zone, dst) DESCRIPTION
Tzset uses the value of the environment variable TZ to set up the time conversion information used by localtime. If TZ does not appear in the environment, the TZDEFAULT file (as defined in tzfile.h) is used by localtime. If this file fails for any reason, the GMT offset as provided by the kernel is used. In this case, DST is ignored, resulting in the time being incorrect by some amount if DST is currently in effect. If this fails for any reason, GMT is used. If TZ appears in the environment but its value is a null string, Greenwich Mean Time is used; if TZ appears and begins with a slash, it is used as the absolute pathname of the tzfile(5)-format file from which to read the time conversion information; if TZ appears and begins with a character other than a slash, it's used as a pathname relative to the system time conversion information directory, defined as TZDIR in the include file tzfile.h. If this file fails for any reason, GMT is used. Programs that always wish to use local wall clock time should explicitly remove the environmental variable TZ with unsetenv(3). Ctime converts a long integer, pointed to by clock, such as returned by time(2) into ASCII and returns a pointer to a 26-character string in the following form. All the fields have constant width. Sun Sep 16 01:03:52 1973 Localtime and gmtime return pointers to structures containing the broken-down time. Localtime corrects for the time zone and possible day- light savings time; gmtime converts directly to GMT, which is the time UNIX uses. Asctime converts a broken-down time to ASCII and returns a pointer to a 26-character string. The structure declaration from the include file is: struct tm { int tm_sec; /* 0-59 seconds */ int tm_min; /* 0-59 minutes */ int tm_hour; /* 0-23 hour */ int tm_mday; /* 1-31 day of month */ int tm_mon; /* 0-11 month */ int tm_year; /* 0- year - 1900 */ int tm_wday; /* 0-6 day of week (Sunday = 0) */ int tm_yday; /* 0-365 day of year */ int tm_isdst; /* flag: daylight savings time in effect */ char **tm_zone; /* abbreviation of timezone name */ long tm_gmtoff; /* offset from GMT in seconds */ }; Tm_isdst is non-zero if a time zone adjustment such as Daylight Savings time is in effect. Tm_gmtoff is the offset (in seconds) of the time represented from GMT, with positive values indicating East of Greenwich. Timezone remains for compatibility reasons only; it's impossible to reliably map timezone's arguments (zone, a "minutes west of GMT" value and dst, a "daylight saving time in effect" flag) to a time zone abbreviation. If the environmental string TZNAME exists, timezone returns its value, unless it consists of two comma separated strings, in which case the second string is returned if dst is non-zero, else the first string. If TZNAME doesn't exist, zone is checked for equality with a built-in table of values, in which case timezone returns the time zone or daylight time zone abbreviation associated with that value. If the requested zone does not appear in the table, the difference from GMT is returned; e.g. in Afghanistan, timezone(-(60*4+30), 0) is appropri- ate because it is 4:30 ahead of GMT, and the string GMT+4:30 is returned. Programs that in the past used the timezone function should return the zone name as set by localtime to assure correctness. FILES
/usr/share/zoneinfotime zone information directory /etc/localtime local time zone file SEE ALSO
gettimeofday(2), getenv(3), time(3), tzfile(5), environ(7) NOTE
The return values point to static data whose content is overwritten by each call. The tm_zone field of a returned struct tm points to a static array of characters, which will also be overwritten at the next call (and by calls to tzset). 4th Berkeley Distribution November 27, 1996 CTIME(3)
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy