From Clomosy Docs
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
var | var | ||
| Line 15: | Line 14: | ||
ShowMessage('Today has time = '+TimeToStr(today)); | ShowMessage('Today has time = '+TimeToStr(today)); | ||
} | } | ||
</pre> | </pre> | ||
Revision as of 12:23, 13 November 2024
function Now():TclDateTime;
The Now function returns the current date and time in the local time zone.
Example
var
today : TclDateTime;
{
today = Now(); // or Now
ShowMessage('Today has date = '+DateToStr(today));
ShowMessage('Today has time = '+TimeToStr(today));
}
Output:
Today has date = 28.02.2023 Today has time = 13:08:53