in reply to working with epoch seconds
My local timezone is GMT+8 hours, so the output is correct.input time is 1160391190 gmtime gives: Mon Oct 9 10:53:10 2006 diff is: 28800
Regards your local timezone being GMT+2, are you sure? Perhaps you are not taking something silly into account, like daylight savings?
As to what you should do about that, I'm afraid that I'm a little unclear on exactly what it is that you are trying to achieve - so perhaps you need to explain that a little more.
As a side note, you should try to avoid using $a and $b as variable names - they are special package global variables that are used by sort.
Cheers,
Darren :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: working with epoch seconds
by jeanluca (Deacon) on Oct 09, 2006 at 11:30 UTC | |
by Hue-Bond (Priest) on Oct 09, 2006 at 11:47 UTC | |
by jeanluca (Deacon) on Oct 09, 2006 at 12:34 UTC | |
by Hue-Bond (Priest) on Oct 09, 2006 at 12:58 UTC |