Time :: Time - Constructor
The function creates a time value (time span) in centiseconds.
Implementation overview
- Set time value to number of centiseconds
Time :: Time ( iCentiseconds ) - Create copy
Time :: Time ( cTime ) - Create an empty time value
Time :: Time (  ) - Set time value from hours, minutes, seconds and centiseconds
Time :: Time ( iHour, iMinute, iSecond, iCentisecond ) - Set time from string value
Time :: Time ( sTime ) - - internal feature (not documented)
Time :: Time ( cValue )
Implementation details
-
Set time value to number of centiseconds
Time  :: Time ( int32 iCentiseconds )
The value passed in iCentiSeconds is considered as time value expressed in number of centiseconds and stored as time value. It is up to the application to interpret the time value as local or standard time value.
- iCentiseconds
- Centiseconds
Time span in hundredths of a second or centiseconds in a time value.
to list
- iCentiseconds
- Centiseconds
-
Create copy
Time  :: Time ( odaba::Time &cTime )
The constructor creates a copy from the time value passed in cTime.
- cTime
- Time value
The time value is passed in the ODABA Interface::Time format and provides time in 1/100th seconds.
to list
- cTime
- Time value
-
Create an empty time value
Time  :: Time (  )
The function initializes time to empty.
to list
-
Set time value from hours, minutes, seconds and centiseconds
Time  :: Time ( int32 iHour, int32 iMinute, int32 iSecond, int32 iCentisecond )
Any value might be passed for hour, minutes, seconds and centiseconds. There is no check, whether iHours:iMinutes:iSeconds,iCentiseconds is a valid time value. Instead, each parameter is converted into centiseconds and summed up to the total number of centiseconds stored as time value.
- iHour
- Hour
Hour of the day.
- iMinute
- Minute
Minute of the hour.
- iSecond
- Second
Second of the minute.
- iCentisecond
- Centisecond
Part (in hundredths) of the second.
to list
- iHour
- Hour
-
Set time from string value
Time  :: Time ( odaba::String &sTime )
The time value is set to the time value passed in string format.
- sTime
- Time value in string format
Time values are passed as string value with the following format:
hh[:mm[:ss[,cc]
Time values must not contain spaces.
to list
- sTime
- Time value in string format
-
- internal feature (not documented)
Time  :: Time ( odaba::Value &cValue )
- cValue
- Value handle
A value handle refers to a (usually) opened value. Invalid value handles may cause an exception.
to list
- cValue
- Value handle