Time change not working...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Time change not working...
# 8  
Old 11-02-2001
Check your hardware time

The problem you just described often happens when you tell Unix/Linux that your hardware time is GMT rather than local time. CDT is -5 GMT so this looks suspecious to me, try changing your hadware BIOS time to GMT (five hours ahead of CDT and 6 ahead of CST) and see if this corrects the problem.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Change delimiter is not working using awk

I have file 2.txt and I want to change the delimiter form , to : Not sure what is the problem with below command cat 2.txt 1,a 2,b 3,d awk 'BEGIN {FS=",";OFS=":";} {print $0}' 2.txt Please use CODE tags as required by forum rules! (11 Replies)
Discussion started by: vamsi.valiveti
11 Replies

2. Shell Programming and Scripting

Why is sort -k not working all the time?

I have a script that puts a list of files in two separate arrays: First, I get a file list from a ZIP file and fill `FIRST_Array()` with it. Second, I get a file list from a control file within a ZIP file and fill `SECOND_Array()` with it while read length date time filename ... (8 Replies)
Discussion started by: alan
8 Replies

3. Debian

change time

Hi all, I want change the time settings from EST to IST by using command line in Debian os. but it is not taken. Can any body show me the how to change the time settings by using command line. Thanks, (1 Reply)
Discussion started by: mastansaheb
1 Replies

4. Shell Programming and Scripting

FTP mget * not working after change directory -cd

Hi everyone, I have an Linux FTP script to get files from different AS400 mailboxes and store in different local directories. I had to use mget * option becuase there is no fixed destination file name means filename can change. The following FTP script is working fine if we have single file... (5 Replies)
Discussion started by: oravikiran
5 Replies

5. 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

6. UNIX for Advanced & Expert Users

How do I change the minimum working frequency ?

The file /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_frequency reads a value of 800 Mhz . The powertop tool also suggested that 800 Mhz w3as the minimum frequency being used . I changed the above-mentioned file to 1.6 GHz and monitored powertop tool again . To my surprise, it still said that... (3 Replies)
Discussion started by: vishwamitra
3 Replies

7. Solaris

change time

The time of our Solaris server now is slowly more 20 seconds. How can we change it ? (3 Replies)
Discussion started by: anhtt
3 Replies

8. Linux

How To change time?

what command must i use to change time ? (4 Replies)
Discussion started by: Sirius
4 Replies

9. Shell Programming and Scripting

how to change working directories in perl?

i am new to perl. i am writing a perl script. i want to know how to change the working directories? for ex. i have a perl script in c:\proj\ . i want to run this script in this directory but i need my script to change its working directory to D:\xyz\ dynamically in the script. your help is... (1 Reply)
Discussion started by: megastar
1 Replies

10. UNIX for Dummies Questions & Answers

Change to a new working directory...

I need to CD to a particular directory to check log files and interface files. Instead of typing the path manually, is there a way of getting a script to change my working directory to the one I need? Currently I have a script that CD's to the directories I need but a soon as the script exits,... (5 Replies)
Discussion started by: jagannatha
5 Replies
Login or Register to Ask a Question
TZSET(3)						     Linux Programmer's Manual							  TZSET(3)

NAME
tzset, tzname, timezone, daylight - initialize time conversion information SYNOPSIS
#include <time.h> void tzset (void); extern char *tzname[2]; extern long timezone; extern int daylight; DESCRIPTION
The tzset() function initializes the tzname variable from the TZ environment variable. This function is automatically called by the other time conversion functions that depend on the time zone. In a SysV-like environment it will also set the variables timezone (seconds West of GMT) and daylight (0 if this time zone does not have any daylight savings time rules, nonzero if there is a time during the year when daylight savings time applies). If the TZ variable does not appear in the environment, the tzname variable is initialized with the best approximation of local wall clock time, as specified by the tzfile(5)-format file localtime found in the system timezone directory (see below). (One also often sees /etc/localtime used here, a symlink to the right file in the system timezone directory.) If the TZ variable does appear in the environment but its value is NULL or its value cannot be interpreted using any of the formats speci- fied below, Coordinated Universal Time (UTC) is used. The value of TZ can be one of three formats. The first format is used when there is no daylight saving time in the local time zone: std offset The std string specifies the name of the time zone and must be three or more alphabetic characters. The offset string immediately follows std and specifies the time value to be added to the local time to get Coordinated Universal Time (UTC). The offset is positive if the local time zone is west of the Prime Meridian and negative if it is east. The hour must be between 0 and 24, and the minutes and seconds 0 and 59. The second format is used when there is daylight saving time: std offset dst [offset],start[/time],end[/time] There are no spaces in the specification. The initial std and offset specify the standard time zone, as described above. The dst string and offset specify the name and offset for the corresponding daylight savings time zone. If the offset is omitted, it defaults to one hour ahead of standard time. The start field specifies when daylight savings time goes into effect and the end field specifies when the change is made back to standard time. These fields may have the following formats: Jn This specifies the Julian day with n between 1 and 365. February 29 is never counted even in leap years. n This specifies the Julian day with n between 1 and 365. February 29 is counted in leap years. Mm.w.d This specifies day d (0 <= d <= 6) of week w (1 <= w <= 5) of month m (1 <= m <= 12). Week 1 is the first week in which day d occurs and week 5 is the last week in which day d occurs. Day 0 is a Sunday. The time fields specify when, in the local time currently in effect, the change to the other time occurs. If omitted, the default is 02:00:00. The third format specifies that the time zone information should be read from a file: :[filespec] If the file specification filespec is omitted, the time zone information is read from the file localtime in the system timezone directory, which nowadays usually is /usr/share/zoneinfo. This file is in tzfile(5) format. If filespec is given, it specifies another tzfile(5)-format file to read the time zone information from. If filespec does not begin with a `/', the file specification is relative to the system timezone directory. FILES
The system time zone directory used depends on the (g)libc version. Libc4 and libc5 use /usr/lib/zoneinfo, and, since libc-5.4.6, when this doesn't work, will try /usr/share/zoneinfo. Glibc2 will use the environment variable TZDIR, when that exists. Its default depends on how it was installed, but normally is /usr/share/zoneinfo. This timezone directory contains the files localtime local time zone file posixrules rules for POSIX-style TZ's Often /etc/localtime is a symlink to the file localtime or to the correct time zone file in the system time zone directory. CONFORMING TO
SVID 3, POSIX, BSD 4.3 NOTES
Note that the variable daylight does not indicate that daylight savings time applies right now. It used to give the number of some algo- rithm (see the variable tz_dsttime in gettimeofday(2)). It has been obsolete for many years but is required by SUSv2. BSD4.3 had a routine char *timezone(zone,dst) that returned the name of the time zone corresponding to its first argument (minutes West of GMT). If the second argument was 0, the standard name was used, otherwise the daylight savings time version. SEE ALSO
date(1), gettimeofday(2), time(2), ctime(3), getenv(3), tzfile(5) 2001-11-13 TZSET(3)