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

$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

$gmt
$gmt(date [,format])

Paramters

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

None

Example

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

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