Method GetFieldTimestamp
- Namespace
- YndigoBlue.Velocity.Model
- Assembly
- YndigoBlue.Velocity.dll
GetFieldTimestamp(string)
Gets the value of a timestamp field as a DateTimeOffset. Also converts from DateTime, Date, string, integer, and long (UNIX epoch) fields.
public DateTimeOffset GetFieldTimestamp(string fieldName)
Parameters
fieldNamestringThe column name.
Returns
- DateTimeOffset
The timestamp value with offset.
Exceptions
- Exception
Thrown when the field name is invalid or no timestamp-compatible value can be found.