Date/Time Shortcuts

The following table outlines the date/time shortcuts that you can use in calculation formulas. If Historian accepts an abbreviation for the shortcut, in addition to the full shortcut, the abbreviation appears in bold in the following table.

Table 1. Date/Time Shortcuts
ShortcutDescription
NowNow (the time and date that you execute the query)
TodayToday at midnight
YesterdayYesterday at midnight
BOYFirst day of year at midnight
EOYLast day of year at midnight
BOMFirst day of month at midnight
EOMLast day of month at midnight

Relative Date/Time Shortcuts

Optionally, you can add or subtract relative times to the absolute times listed in the following table. The following table outlines the relative time shortcuts. If Historian accepts an abbreviation for the shortcut, in addition to the full shortcut, the abbreviation appears in bold in the following table.

Table 2. Relative Date/Time Shortcuts
ShortcutDescription
SecondSecond
MinuteMinute
HourHour
DayDay
WeekWeek
Note: You cannot write a shortcut as 5h3m. Instead, you can write this shortcut as: Today+5h+3min.