SystemTime

The SystemTime function returns the current local time of the computer running the project. If the project is published to the CSI Web Server or a datalogger web server, it returns the current local time of the computer running the browser that is viewing the CSI Web Server web page.

Syntax

SystemTime()

Example

The following example will attempt to start processing at a record with a timestamp one day before the current system time:

StartAtTime(SystemTime() -nsecPerDay,OrderCollected);
AvgRunOverTime("Server:CR1000.SECOND.Temp_F",Timestamp("Server:CR1000.SECOND.Temp_F"),nSecPerDay)

NOTE: If a more predictable time is required, use the SystemTimeGMT function which returns the current Greenwich Mean Time (GMT). Also, using a LoggerNet server source name alone and surrounded by quotes will return the local time of the computer running the LoggerNet server source.

For example:

TimeStamp(SetTimeStamp("Server:Logan.Public.AirTemp","ServerSourceName"))