DT_GetCurrentTimeΒΆ

DT_GetCurrentTime returns the current date/time as a real number.

r = DT_GetCurrentTime()
r = DT_GetCurrentTime(bUTC)

Return Value

r is a real number representing the current date/time.

Parameters

bUTC

If bUTC is TRUE, the function returns the UTC-Zeit (Universal Time Coordinated) and not the local time. Default is FALSE. See also DT_GetTimeZoneOffsets.

Example

* r = DT_GetCurrentTime()
* r
35991.6003
* DT_Format(DT_GetCurrentTime(), "%c")
15.07.98 14:24:34
* DT_Format(DT_GetCurrentTime(), "%x")
15.07.98
* DT_Format(DT_GetCurrentTime(), "%X")
14:24:38
* DT_Format(r, "Today is %A, day %d of %B in the year %Y.")
Today is wednesday, day 15 of July in the year 1998.

History

Version Description
R2012.3 (5.40.3) New Parameter bUTC.

id-255139