Yearday
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Extract the day of the year from a time expression. The day of the year (also known as a Julian day) is an integer ranging from 1 to 366, where 1 represents January 1.
Syntax
Yearday(t1)
Arguments
-
t1
A time expression, enclosed in single quotes
Returns
The day of the year of time, in the range 1-366, where 1 represents January 1
Exceptions
None
Example
-
Yearday('*')
[Return what day of the year today is, where 1 represents January 1]
-
Yearday('y')
[Return what day of the year yesterday was, where 1 represents January 1]