Home > Class Reference > %SYS namespace > %Library.FilemanYear

%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: 3160000

Method Inventory

Parameters

parameter COLLATION = STRING;
parameter JSONTYPE = string;
parameter XSDTYPE = string;

Methods

classmethod DateToLogical(%val As %Library.String = "") as %Library.FilemanYear [ Language = objectscript ]
Converts %Date format DATE (+$H) to FILEMAN format YEAR (CYY0000).
classmethod DisplayToLogical(Arg1 As %Library.String) as %Library.FilemanYear [ Language = objectscript ]
Converts DISPLAY format DATE (DD/MM/YYYY) to FILEMAN format YEAR (CYY0000).
classmethod IsValid(%val As %RawString) as %Status [ Language = objectscript ]
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 [ Language = objectscript ]
classmethod LogicalToDate(%val As %Library.FilemanDate) as %Library.Date [ Language = objectscript ]
Converts FILEMAN format YEAR (CYY0000) to %Date format DATE (+$H)
classmethod LogicalToDisplay(Arg1 As %Library.FilemanYear = "") as %Library.String [ Language = objectscript ]
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 [ Language = objectscript ]
Converts the logical %FilemanYear value to the JSON string value.
classmethod LogicalToOdbc(Arg1 As %Library.FilemanYear = "") as %Library.String [ Language = objectscript ]
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 [ Language = objectscript ]
Converts the %FilemanYear value to the canonical SOAP encoded value.
classmethod OdbcToLogical(Arg1 As %Library.String = "") as %Library.FilemanDate [ Language = objectscript ]
Converts ODBC format DATE (YYYY-MM-DD) to FILEMAN format YEAR (CYY0000).
classmethod TimeStampToLogical(%val As %Library.TimeStamp = "") as %Library.FilemanYear [ Language = objectscript ]
Converts %TimeStamp format TIMESTAMP (YYYY-MM-DD HH:MM:SS) to FILEMAN format YEAR (CYY0000).
classmethod XSDToLogical(%val As %String) as %FilemanYear [ Language = objectscript ]