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.
A date time value or timestamp is passed in the internal ODABA Interface::Date-time format.
Implementation overview
- Get timestamp value from current value
Value :: toDateTime (  ) - Get timestamp value for passed property
Value :: toDateTime ( vSimplePath )
Implementation details
-
Get timestamp value from current value
odaba::DateTime Value  :: toDateTime (  )
The function returns the timestamp value from current value handle.
to list
-
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.
to list
- vSimplePath
- Simple property path