company logo

Value :: toDateTime - Convert value to timestamp value

The function returns the value as timestamp (DateTime).

When no instance is selected or the value cannot be converted into a timestamp value, the function throws an exception.

Return value:  Timestamp ( odaba::DateTime  )

A date time value or timestamp is passed in the internal ODABA Interface::Date-time format.

Implementation overview

Implementation details

  1. Get timestamp value from current value
    odaba::DateTime Value  :: toDateTime (  )

    The function returns the timestamp value from current value handle.

  2. to list
  3. Get timestamp value for passed property
    odaba::DateTime Value  :: toDateTime ( odaba::String &vSimplePath )

    The function returns the timestamp value for the property with the name passed in vSimplePath. When no property exists with the passed name the function throws an exception.

    This is a short form for value(vSimplePath).toDateTime().

    • vSimplePath - Simple property path

      A simple property path may contain an extent or property name but also a sequence of property names separated by dot. A simple property path must not contain parenthesis or preceding dots.

  4. to list