Time/date functions manipulate time and date variables. Citect SCADA stores time/date-related variables as a single integer. This integer represents the number of seconds since 01/01/1970. It is in GMT, but it has an offset that updates it to local time (determined by the timezone the application is in). The Time/date functions convert this integer into time and date variables.
Note: The Time/date functions can only be used with dates between 1980 and 2035.
Following are functions relating to Time and Date:
Gets the current system date in string format. |
|
Adds time to a date. |
|
Gets the day from a date. |
|
Returns the date format currently in effect on the Citect SCADA Server. |
|
Gets the month from a date. |
|
Subtracts two dates. |
|
Gets the day of week from a date. |
|
Gets the year from a date. |
|
Converts an OLE DATE value to a Citect SCADA time/date value. |
|
Marks the start of an event. |
|
Calculates the time-span of an event. |
|
Gets the current system time in string format. |
|
Gets the current time/date value. |
|
Gets hours from a time. |
|
Returns the time format currently in effect on the Citect SCADA Server. |
|
Converts a time variable into the time at midnight. |
|
Gets minutes from a time. |
|
Gets seconds from a time. |
|
Sets the new system time. |
|
TimeToOLEDate | Converts a time/date value to an OLE DATE value |
Converts a time/date variable into a string. |
|
Determines the local time bias from UTC at a specified time. |
See Also
Published June 2018