MyChat Scripts Engine: Now
Function to get the local computer date and time value (without UTC correction).
Syntax
function Now: double;
Function result
Current date/time value.
Example
var
iYear, iMonth, iDay: word;
begin
DecodeDate(Now, iYear, iMonth, iDay);
// A.D. - Anno Domini
// B.C. - Before Christ
mLogScript('Day: ' + inttostr(iDay) + ', '+
'Month: ' + inttostr(iMonth) + ', ' +
'Year: ' + inttostr(iYear) + ' A.D.',
'');
end.
Script work result
[17:50:24] (Log "Now"): Day: 5, Month: 3, Year: 2018 A.D.
[17:50:24] (Run "Now"): Script operation time: 7 ms
[17:50:24] (Run "Now"): Script done successful.