mIRC Home    About    Download    Register    News    Help

Print Thread
#157560 26/08/06 05:19 AM
Joined: Feb 2004
Posts: 201
J
Jae Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Feb 2004
Posts: 201
//echo -a $gmt($ctime,dddd dd mmmm yyyy (HH:nn:ss zzz))
Saturday 26 August 2006 (05:10:41 +1000 GMT)

i got a feeling the +1000 might a bug..
as it was 15:10.. and returned 05:10 (+0000 GMT)
yet said +1000 GMT

#157561 26/08/06 09:41 AM
Joined: Feb 2005
Posts: 342
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
I can't see a bug here.

Though I think it is possible that you may be confused.

When dealing with Daylight Savings Time, for instance my own time zone is: Central Standard Time. (Though at this moment it is Central Daylights Savings Time). CST and CDT.

When we are on CST we are -6 hours from GMT. While on CDT (right this moment) we are -5 hours from GMT.

The only possible issue I can see as far as "zzz" goes, is that it returns "-0600" while Daylight Savings is in effect, instead of -0500. However, we do have $daylight to help with that.

#157562 29/08/06 09:57 AM
Joined: Feb 2004
Posts: 201
J
Jae Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Feb 2004
Posts: 201
My point is it tells my timezone.. yet displays the time in gmt, perhaps in some ways it may be right.. but by putting in a different time in there, its essentually returning the wrong thing.
As its converting the time to be in GMT +0000, but is showing +1000


Link Copied to Clipboard