Cicode Programming Reference > Cicode Function Categories > Time and Date Functions Introduction > Time/Date Functions

Time/Date Functions

Following are functions relating to Time and Date:

Date

Gets the current system date in string format.

DateAdd

Adds time to a date.

DateDay

Gets the day from a date.

DateInfo

Returns the date format currently in effect on the CitectSCADA Server.

DateMonth

Gets the month from a date.

DateSub

Subtracts two dates.

DateWeekDay

Gets the day of week from a date.

DateYear

Gets the year from a date.

OLEDateToTime

Converts an OLE DATE value to a CitectSCADA time/date value.

SysTime

Marks the start of an event.

SysTimeDelta

Calculates the time-span of an event.

Time

Gets the current system time in string format.

TimeCurrent

Gets the current time/date value.

TimeHour

Gets hours from a time.

TimeInfo

Returns the time format currently in effect on the CitectSCADA Server.

TimeMidNight

Converts a time variable into the time at midnight.

TimeMin

Gets minutes from a time.

TimeSec

Gets seconds from a time.

TimeSet

Sets the new system time.

TimeToStr

Converts a time/date variable into a string.

TimeUTCOffset

Determines the local time bias from UTC at a specified time.

See Also

Cicode Functions