%Library.FilemanYear
datatype class %Library.FilemanYear
ODBC Type: VARCHAR
Custom DATE data type designed to convert FILEMAN format YEAR fields. A field defined as a YEAR data type can accept many of the date entries, but only stores the YEAR portion. Example: External: 2016 Internal: 3160000Method Inventory
- DateToLogical()
- DisplayToLogical()
- IsValid()
- JSONToLogical()
- LogicalToDate()
- LogicalToDisplay()
- LogicalToJSON()
- LogicalToOdbc()
- LogicalToXSD()
- OdbcToLogical()
- TimeStampToLogical()
- XSDToLogical()
Parameters
parameter COLLATION = STRING;
parameter JSONTYPE = string;
parameter XSDTYPE = string;
Methods
classmethod DateToLogical(%val As %Library.String = "") as %Library.FilemanYear
Converts %Date format DATE (+$H) to FILEMAN format YEAR (CYY0000).
classmethod DisplayToLogical(Arg1 As %Library.String) as %Library.FilemanYear
Converts DISPLAY format DATE (DD/MM/YYYY) to FILEMAN format YEAR (CYY0000).
classmethod IsValid(%val As %RawString) as %Status
Checks for Invalid format, expects FILEMAN format YEAR (CYY0000).
Can handle data on disk in the Fileman TimeStamp format.
classmethod JSONToLogical(%val As %String) as %FilemanYear
classmethod LogicalToDate(%val As %Library.FilemanDate) as %Library.Date
Converts FILEMAN format YEAR (CYY0000) to %Date format DATE (+$H)
classmethod LogicalToDisplay(Arg1 As %Library.FilemanYear = "") as %Library.String
Converts FILEMAN format YEAR (CYY0000) to DISPLAY format YEAR (YYYY).
Can handle data on disk in the Fileman TimeStamp format.
classmethod LogicalToJSON(%val As %FilemanYear) as %String
Converts the logical %FilemanYear value to the JSON string value.
classmethod LogicalToOdbc(Arg1 As %Library.FilemanYear = "") as %Library.String
Converts FILEMAN format YEAR (CYY0000) to ODBC format YEAR (YYYY).
Can handle data on disk in the Fileman TimeStamp format.
classmethod LogicalToXSD(%val As %FilemanYear) as %String
Converts the %FilemanYear value to the canonical SOAP encoded value.
classmethod OdbcToLogical(Arg1 As %Library.String = "") as %Library.FilemanDate
Converts ODBC format DATE (YYYY-MM-DD) to FILEMAN format YEAR (CYY0000).
classmethod TimeStampToLogical(%val As %Library.TimeStamp = "") as %Library.FilemanYear
Converts %TimeStamp format TIMESTAMP (YYYY-MM-DD HH:MM:SS) to FILEMAN format YEAR (CYY0000).
classmethod XSDToLogical(%val As %String) as %FilemanYear