From WikiChip
$gmt Identifier - mIRC
< mirc‎ | identifiers

$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.


Synopsis[edit]

$gmt
$gmt(date [,format])

Paramters[edit]

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

Properties[edit]

None

Example[edit]

//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

Compatibility[edit]

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]