time time time how can I tell the time

time time time how can I tell the time

Post by Daddy Rabb » Wed, 03 Feb 1999 04:00:00



I mistakenly selected the GMT setting during install now my time is
all screwed up if I set the time back to EST in CMOS i get all kinds
of error messages regarding the time. ( files have future date and
such)

Q: Where do I set the environment variable to tell Linux I'm in the
Eastern Time Zone?

TIA

Jim

 
 
 

time time time how can I tell the time

Post by Villy Kru » Wed, 03 Feb 1999 04:00:00




>I mistakenly selected the GMT setting during install now my time is
>all screwed up if I set the time back to EST in CMOS i get all kinds
>of error messages regarding the time. ( files have future date and
>such)

>Q: Where do I set the environment variable to tell Linux I'm in the
>Eastern Time Zone?

On redhat systems it is determined by following symbolic link.

    /etc/localtime -> ../usr/share/zoneinfo/Europe/Amsterdam
    /usr/share/zoneinfo/localtime -> ../../../etc/localtime
    /usr/share/zoneinfo/posixrules -> localtime
    /usr/share/zoneinfo/posixtime -> localtime

Keep the cmos clock on UTC time and it will work perfectly.

Villy

 
 
 

time time time how can I tell the time

Post by Jeremy Mathe » Wed, 03 Feb 1999 04:00:00






>>I mistakenly selected the GMT setting during install now my time is
>>all screwed up if I set the time back to EST in CMOS i get all kinds
>>of error messages regarding the time. ( files have future date and
>>such)

>>Q: Where do I set the environment variable to tell Linux I'm in the
>>Eastern Time Zone?

>On redhat systems it is determined by following symbolic link.

>    /etc/localtime -> ../usr/share/zoneinfo/Europe/Amsterdam
>    /usr/share/zoneinfo/localtime -> ../../../etc/localtime
>    /usr/share/zoneinfo/posixrules -> localtime
>    /usr/share/zoneinfo/posixtime -> localtime

>Keep the cmos clock on UTC time and it will work perfectly.

No, you did not read the original item closely enough.  Mark yourself
down 2 points for reading comprehension.  The whole point is that he
did set it up the way you recommend, but now wants to switch it back
to having his CMOS be on local time (which, I assume, is USA EST).

It is certainly true that Unix systems work best (least surprises)
when the internal clock is on GMT and all conversions to
local/DST/SummerTime/whatever is done in software.  However, doing
this causes pain for those of us who do, occasionally, have to boot
our PC's into less well designed OS's.  It is for this reason that I
recommend against the UTC solution and can see where the original
poster is coming from.

As for how to fix it, "man 8 clock" ought to get you started.
Basically, anywhere in your startup scripts where it does something
like "clock -u", you need to remove the -u.

 
 
 

time time time how can I tell the time

Post by Ben Russ » Wed, 03 Feb 1999 04:00:00



> I mistakenly selected the GMT setting during install now my time is
> all screwed up if I set the time back to EST in CMOS i get all kinds
> of error messages regarding the time. ( files have future date and
> such)

> Q: Where do I set the environment variable to tell Linux I'm in the
> Eastern Time Zone?

> TIA

> Jim

Yeah, what Villy said.

But, you will have the problems with files being dated in the future.
Solution is to run "date" and do an "echo $TZ"
this will tell you what your TIMEZONE environment variable is set
to now, and what the system clock is set too.

Check your system clock.  figure out how many hours it is in the future.

Set the system clock to UTC (pretty much the same as GMT)
Then turn of the system for the number of hours the clock was set ahead.

When you next turn on your system everything will be OK.

-Ben.

 
 
 

1. convert UT time in local time / local time in UT time

hello,

    I try to make a fonction to convert a local time in UT time. i try to
use
     mktime + gmtime + timezone + daylight.... but the result is not OK.
    Please help me....
    The problem is the same when i try to convert a UT time in Local
Time....

    my imput date format is : 'YYYYMMDDHHMMSS'.

    I'am a beginner on Unix (and in english).....

    Does anyone know about a function or an example (in C) .

    Thanks for any help.

2. Linux help channel

3. Daylight time (label) but standard time (time)

4. SCO internals/drivers expert required

5. Daylight Savings time, system time, hardware time....

6. Compiling 99p11--error in tools/System, help

7. hda : irq time out {busy} from time to time

8. Hacker scan port 111

9. Is the time in gprof CPU time or elapsed time?

10. Time, NTP, cron wrong time

11. local time to unix time conversion.

12. Linux gateway crashes from time to time

13. Time zone for BST (British Summer Time)