From WikiChip
$gmt Identifier - mIRC
< mirc‎ | identifiers
Revision as of 14:40, 22 May 2018 by Maroonbells (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$gmt return the current GMT time value in $ctime format. $gmt also accept optional time and/or format parameters, displaying the same format as $asctime, adjusted by $timezone.


$gmt(date [,format])


no parameters Returns ctime adjusted by the $timezone value date Optional ctime date, overrides the default ctime. Returns the GMT time string in $asctime format. format Optional format letters same as for $asctime




//echo -a $gmt($ctime) is the same as $asctime($calc($ctime + $timezone  ) )
//echo -a $gmt is same as $ctime + $timezone
//echo -a $gmt($calc(0+$daylight)) is Thu Jan 01 00:00:00 1970


Added: mIRC v5.5
Added on: 08 Jan 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See Also[edit]