RawTimeOf()

Format

RawTimeOf(Arg1)

Returns

Returns the original timestamp of each datum expressed as the number of seconds since Unix epoch (1970 Jan 1 00:00:00). That is, the exact timestamp of the data point is returned if possible, not the timestamp from the end of the sample interval period as would happen with a normal fetch of data from a Tag.

If the timestamp of the value was overwritten by another function (e.g. Min_Sampled()) then it tries to return the original timestamp of the source value. However, if that fails, then it returns the actual timestamp of the value (similar to the TimeOf() function).

Inputs

Arg1: The argument being evaluated.
Behaviour: Required
Dimensions: Collection, SingleValue, MultiCollection
Valid data types: Null, Boolean, DateTime, Decimal, Integer, String, Duration, Error

Examples

Expression: RawTimeOf({tag})
Result: Returns the timestamps of the values.

Expression: RawTimeOf(Min_Sampled(...))
Result: Returns the timestamps of the source values.

Release History

  • RawTimeOf() 4.10.3
    • Initial version

Comments are closed