NewDateAndTime(INT, INT, INT, INT, INT, INT, INT, INT, INT, LDATE_AND_TIME) : BOOL - Manual - SIMATIC AX - Datetime functions. - System.DateTime,library

System.DateTime library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
6.0.94
Edition
08/2025
Language
English (original)
Package Name
@ax/system-datetime

Provides a LDATE_AND_TIME output value of the specified year, month, day, hour, minute, second, millisecond, microsecond and nanosecond.

If the return value is FALSE, one of the input parameters is out of range or the output value is out of range of the datatype LDATE_AND_TIME.

Parameters:

Name Type Section Description
year INT Input The year. Range 1970..2262
month INT Input The month. Range 1..12
day INT Input The day. Range 1..31 (allowed value depends on days in specified month)
hour INT Input The hour. Range 0..23
minute INT Input The minute. Range 0..59
second INT Input The second. Range 0..59
millisecond INT Input The millisecond. Range 0..999
microsecond INT Input The microsecond. Range 0..999
nanosecond INT Input The nanosecond. Range 0..999
value LDATE_AND_TIME Output The LDATE_AND_TIME value of the specified inputs.
BOOL Return value TRUE if the value was in range of LDATE_AND_TIME, else FALSE.