From Clomosy Docs

No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
<pre>
<pre>
var
var
Line 16: Line 15:
}
}
</pre>
</pre>
<b>Base Syntax</b><br>
<pre>
var
  today : TclDateTime;
begin
  today := Now(); // or Now
  ShowMessage('Today has date = '+DateToStr(today));
  ShowMessage('Today has time = '+TimeToStr(today));
end;
</pre>


<b>Output:</b><br>
<b>Output:</b><br>
Line 35: Line 21:
Today has time = 13:08:53
Today has time = 13:08:53
</div>
</div>


<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Date_and_Time_Functions | Date and Time Functions]]
* [[System_Library#Date_and_Time_Functions | Date and Time Functions]]
{{#seo:|title=Now Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Now returns the current date and time in the local time zone, providing an easy way to get the current timestamp for your application.}}

Latest revision as of 14:00, 24 December 2024

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:

See Also