datetime_value
Provides direct access to a date/time value (a 64-bit integer number storing a date and time in epoch seconds).
This method does not perform any conversion and will throw if the value's data type does not match the type requested.
OpenText recommends using apply_visitor to process all metadata from a document, but this function might be helpful when you want to process a single metadata element and know its data type.
Syntax
int64_t datetime_value() const;