DateTime :: DateTime - Constructor for timestamp
Implementation overview
- Copy constructor
DateTime :: DateTime ( cDateTime ) - Set timestamp from ODABA date and time
DateTime :: DateTime ( cDate, cTime ) - Create an empty timestamp
DateTime :: DateTime (  ) - Create timestamp value from string
DateTime :: DateTime ( sDateTime ) - Create timestamp from value
DateTime :: DateTime ( cValue )
Implementation details
-
Copy constructor
DateTime  :: DateTime ( odaba::DateTime &cDateTime )
The constructor creates a copy from the timestamp value passed in cDateTime.
- cDateTime
- Time stamp
A time stamp combines date and time
to list
- cDateTime
- Time stamp
-
Set timestamp from ODABA date and time
DateTime  :: DateTime ( odaba::Date &cDate, odaba::Time &cTime )
The function sets the timestamp value to the date passed in cDate and to the time passed in cTime.
- cDate
- Date
The date contains day, month and year, but not the time.
- cTime
- Time value
The time value is passed in the ODABA Interface::Time format and provides time in 1/100th seconds.
to list
- cDate
- Date
-
Create an empty timestamp
DateTime  :: DateTime (  )
The function initializes the timestamp with an empty value.
to list
-
Create timestamp value from string
DateTime  :: DateTime ( odaba::String &sDateTime )
The function converts the string passed in sDateTime into a timestamp value. When no time is passed in the string, time is assumed to be 00:00:00,00.
- sDateTime
- DateTime value in string format
Date time values in string format are passed as follows:
date time
Date and time are separated by exactly one blank character. Date has to be passed in one of following date string formats.
Standard: yyyy-mm-dd or yyyymmdd
English: mm/dd/yyyy
German: dd.mm.yyyy
Time has to be passed as:
hh[:mm[:ss[,cc]]]
Time values must not contain spaces.
2009-11-19 11:23:17,43
to list
- sDateTime
- DateTime value in string format
-
Create timestamp from value
DateTime  :: DateTime ( odaba::Value &cValue )
The function creates a timestamp from the value passed in 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