Software Customisation
Reference Manual
Summary of Objects, Members and Methods
:
Object Type Details
: DATETIME Object
DATETIME Object
Methods
Name
Result
Purpose
DateTime()
DATETIME
Create a DATETIME object with current date and time in it.
DateTime(REAL year, REAL month, REAL date)
DATETIME
Create a DATETIME set to the given year, month, date. Time defaults to 00:00:00.
DateTime(REAL year,
STRING month.
REAL date)
DATETIME
As above, but month is a STRING at least three characters long representing month e.g. ‘Jan’, ‘March’, ‘DECEM’
DateTime(REAL year, REAL month, REAL date,
REAL hour,REAL minute)
DATETIME
Create a DATETIME object set to given year, month, date, hour, minute. Seconds default to 0.
DateTime(REAL year,
STRING month, REAL date, REAL hour, REAL minute)
DATETIME
As above, but month is a STRING at least three characters long representing month e.g. ‘Jan’, ‘March’, ‘DECEM’
DateTime(REAL year, REAL month, REAL date, REAL hour, REAL minute, REAL second)
DATETIME
Create a DATETIME object set to given year, month, date, hour, minute, second.
DateTime(REAL year, STRING month, REAL date, REAL hour, REAL minute,
REAL second)
DATETIME
As above, but month is a STRING at least three characters long representing month e.g. ‘Jan’, ‘March’, ‘DECEM’
Date()
REAL
Return day of month for this DATETIME object (1-31).
GEQ(DATETIME)
BOOLEAN
Test whether this DATETIME is later than or the same as argument DATETIME.
GT(DATETIME)
BOOLEAN
Test whether this date is later than argument DATETIME.
HOUR()
REAL
Return hour as REAL for this DATETIME object (0-23).
LEQ(DATETIME)
BOOLEAN
Test whether this DATETIME is earlier or the same as argument DATETIME
LT(DATETIME)
BOOLEAN
Test whether this DATETIME is earlier than argument DATETIME.
Minute()
REAL
Return minutes as REAL for this DATETIME object (0-59).
Month()
REAL
Return month as REAL for this DATETIME object (1-12).
MonthString()
STRING
Return month as STRING for this DATETIME object
(‘January’, ’February’, etc.)
Second()
REAL
Return number of seconds as REAL for this DATETIME object (0-59).
Year()
REAL
Return year as REAL
(e.g. 1998)
Table 2: 30.
DATETIME Object Methods
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.