Usage of Date/Time class property
Hi,
What is the difference of class normal and date/time property and how to use in the script and what is the use of MINVAL and MAXVAL parameters?
Thanks
Product version: IRIS 2020.1
Discussion (2)1
Comments
%Library.Date and %Library.Time are both DataType classes typically used to define Properties.
The values are stored as integers according to $HOROLOG format
They have its MINVAL and MAXVAL as any other numeric data type
Datatype classes are used to define object properties, they allow to:
- Validate values both generic (for example any defined %Integer property by default checks that it's value is an integer) and based on datatype parameters (for example you can have an %Integer(MINVAL=0, MAXVAL=9) property which in addition to checking that it's value is an integer would check that integer value is between 0 and 9)
- Provide different representations based on context, specifically:
- Logical (what's stored in globals)
- Display (what's shown in object)
- XSD (for XML export/import)
- ODBC (returned in SQL)
- Provide generators for utility methods. Article on some examples.
Docs.