Specify a Relative Time in the OPC Relative Time Format

Fields for which you are required to specify a relative time have an adjacent browse button. You can use the browse button to display an Offset Window that you can use to specify the required time.

To manually enter a relative time, you enter a time value in the OPC Relative Time Format, using the following syntax:

<base> [ ( + ¦ - ) <interval> ]

where:

The base times that Geo SCADA Expert supports are:

Base Time Description
Short Format Long Format

S

Second

Beginning of the current second

M

Minute

Beginning of the current minute

H

Hour

Beginning of the current hour

D

Day

Beginning of the current day
(starting from midnight)

W

Week

Beginning of the current week
(starting from midnight on Sunday)

MO

Month

Beginning of the current month
(starting from midnight on the first of the month)

Y

Year

Beginning of the current year
(starting from midnight on the first of January)

NOW

NOW

‘Now’ exactly (to the nearest 100 nanoseconds)

Example:

D
is the short OPC Relative Time Format that represents 00:00am today (long format: Day)

D-1D
is the short OPC Relative Time Format for the start of the yesterday.(D is the start of today, and -1D moves that base time back by one day.)

D-2H
is the short OPC Relative Time Format for 10:00pm yesterday. (D is the start of today, and -2H moves that base time back by two hours.)

D+12H
is the short OPC Relative Time Format for midday today. (D is the start of today, and +12H adds 12 hours onto that base time.)

H+1H
is the short OPC Relative Time Format for the end of the present hour. (H is the start of the present hour, and +1H adds one hour onto that base time.)

H - 30M
is the short OPC Relative Time Format for the middle of the previous hour; where H indicates the start of the current hour, and 30M is the offset backwards in time from that hour. (Long format: Hour - 30 Minutes)

MO + 2W
represents the 14th day of this month (long format: Month + 2 Weeks)

D + 4H 30M
represents 04:30am today (long format: Day + 4 Hours 30 Minutes)


Disclaimer

Geo SCADA Expert 2019