mIRC Home    About    Download    Register    News    Help

Print Thread
#156733 20/08/06 01:46 AM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
//echo -a $gmt($ctime,dddd dd mmmm yyyy (HH:nn:ss GMT))

Returns:
Sunday 20 August 2006 (01:44:58 GMA)

GMA ??
Is that correct? Or is it a bug?

#156734 20/08/06 02:04 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Quote:
//echo -a $gmt($ctime,dddd dd mmmm yyyy (HH:nn:ss GMT))

Returns:
Sunday 20 August 2006 (01:44:58 GMA)

GMA ??
Is that correct? Or is it a bug?


It's correct, and does the same thing in 6.16. As you can see from mirc.hlp, the letter t is the symbol that is replaced by 'a' or 'p', depending on whether it's AM or PM.

Try doing it with gmt instead of GMT...

#156735 20/08/06 02:33 AM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Ahhh alright.
Fair enough.

Thx cool


Edit:
//echo -a $gmt($ctime,dddd dd mmmm yyyy (HH:nn:ss gmt))
Returns:
Sunday 20 August 2006 (02:33:19 g8a)

But no problem, I've solved it by just writing it differently.

Last edited by OrionsBelt; 20/08/06 02:34 AM.
#156736 20/08/06 03:03 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Yes, the way to do it is to use $gmt instead of $ctime, something like:

Note, because I'm inside daylight saving time, I get a different reply to:

//echo -a $asctime($gmt,dddd dd mmmm yyyy HH:nn:ss) GMT

than to:

//echo -a $gmt($ctime,dddd dd mmmm yyyy HH:nn:ss) GMT

#156737 26/08/06 05:11 AM
Joined: Feb 2004
Posts: 201
J
Jae Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2004
Posts: 201
Quote:
//echo -a $gmt($ctime,dddd dd mmmm yyyy (HH:nn:ss GMT))

Returns:
Sunday 20 August 2006 (01:44:58 GMA)

GMA ??
Is that correct? Or is it a bug?


//echo -a $gmt($ctime,dddd dd mmmm yyyy (HH:nn:ss zzz))
Saturday 26 August 2006 (05:10:41 +1000 GMT)

is that acceptable?

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

also if you used the above and it wasnt buggy, then you could simply encase it in $remove and remove +0000

Last edited by Jae; 26/08/06 05:18 AM.

Link Copied to Clipboard