GetSystemTimeAsText('DateTimeFormat*="yyyy-MM-dd HH:mm:ss"', 'UTC*=0', 'Enable=1')
Arguments
|
'Argument' |
Description |
|
|
'DateTimeFormat' |
yy, yyyy |
Year 2 or 4 digits |
|
M, MM MMM, MMMM |
Month M: 1, 2, 3, 12; MM: 01, 02, 03, ...12 Name of month |
|
|
d, dd ddd, dddd |
Day d: 1, 2, 3, ...31; dd: 01, 02, 03, ... 31 Day of week |
|
|
h, hh, H, HH |
Hour 12-hour notation Hour 24-hour notation |
|
|
m, mm |
Minutes |
|
|
s,ss |
Seconds |
|
|
f, ff, fff |
Fractions of a second up to 0.1, 0.01, 0.001 (millisecond), ... precision |
|
|
tt |
AM/PM indicator; only available if ibaPDA service runs in a culture that supports AM/PM (e.g. US-EN) |
|
|
'UTC' |
0 (default) 1 |
Date/time local UTC date and time |
|
'Enable' |
1 |
Optional argument; if 'Enable' is provided, then date/time will only be emitted when 'Enable' = 1 or true. If the argument is omitted, date/time will always be emitted. |
Parameters ending with * are only evaluated once at the start of the acquisition.
Description
This function returns the current date and time. Depending on the parameter 'UTC', date and time will be returned as local or UTC date/time.
The calculation can be controlled using the optional parameter, 'Enable.' If you want to take advantage of higher precision by using fractions of a second, you should provide the 'Enable' parameter and set it on 1 or true.
Examples
Examples for Tuesday, August 07, 2023, 17:05 (CEST)
|
Formula |
Result |
|
|
2023-08-07 17:05:42 |
|
|
2023-08-07 15:05:42 |
|
|
23-Aug-07 03:05:42 |
|
|
2023-08-07 17:05:42 478 |