company logo

DateTime :: DateTime - Constructor for timestamp

Implementation overview

Implementation details

  1. 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

  2. to list
  3. 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.

  4. to list
  5. Create an empty timestamp
    DateTime  :: DateTime (  )

    The function initializes the timestamp with an empty value.

  6. to list
  7. 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

  8. to list
  9. 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.

  10. to list