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. |
See also
Overview Date and Time, DT_GetTimeZoneOffsets, DT_Format, DT_GetDay, DT_GetDayOfWeek, DT_GetDayOfYear, DT_GetHour, DT_GetMinute, DT_GetMonth, DT_GetSecond, DT_GetYear, DT_ParseDateTime, DT_SetDate, DT_SetDateTime, DT_SetLocale, DT_SetTime
id-255139