<< Click to Display Table of Contents >>
TimestampOf |
TimestampOf(TagName)
Returns the timestamp of a Tag. The TagName parameter is the name of a Tag. The return data type of this function is a number and indicates the time in milliseconds since January 1st, 1970. The next code contains an example of using this function.
var tagTimestamp = TimestampOf("demo:TagInternal1");
var tagDate = new Date(tagTimestamp);
LogMessage("Tag timestamp: " + tagDate.toLocaleString());