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

TimeMin

Gets the minutes value from a time/date variable.

Time/date functions can only be used with dates from 1980 to 2035. You should check that the date you are using is valid with Cicode similar to the following:

IF StrToDate(Arg1)>0 THEN
...
ELSE
...
END

Syntax

TimeMin(Time)

Time:

The time/date variable.

Return Value

The minute (as an integer).

Related Functions

TimeCurrent

Example

! If the current system time is 11:43:10 a.m.
MinutesVariable=TimeMin(TimeCurrent());
! Sets MinutesVariable to 43.

See Also

Time/Date Functions