-
Notifications
You must be signed in to change notification settings - Fork 1
/
Time.cls
29 lines (23 loc) · 1.34 KB
/
Time.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/// This datatype supports formated time instances.
/// NOTE: the valid format patterns are described in arsblue.datatype.DateTimeFormat!
///
/// ARSBlue ToolBox-4-Iris
/// Copyright © 2019 ARS Blue GmbH
/// http://www.ars-blue.at
Class arsblue.datatype.Time Extends arsblue.datatype.DateTime [ ClientDataType = TIME, OdbcType = TIME, SqlCategory = TIME ]
{
/// The datatype logical format (if it's a valid numeric value, it will be stored as decimal value).
/// NOTE: it's recommended do not use senseless formats which are not unique and meaningfull date/time formats!
Parameter LOGICALFORMAT As %String = "HHmmss";
/// The datatype display format.
/// NOTE: it's recommended do not use senseless formats which are not unique and meaningfull date/time formats!
Parameter DISPLAYFORMAT As %String = {##class(arsblue.datatype.DateTimeFormat).GetTimeDisplayFormat()};
/// The datatype XSD format.
/// NOTE: it's recommended do not use senseless formats which are not unique and meaningfull date/time formats!
Parameter XSDFORMAT As %String = "HH:mm:ssZ";
/// Declares the XSD type used when projecting XML Schemas.
Parameter XSDTYPE = "time";
/// The datatype ODBC format.
/// NOTE: it's recommended do not use senseless formats which are not unique and meaningfull date/time formats!
Parameter ODBCFORMAT As %String = "HH:mm:ss";
}