Skip to main content

%Library.FilemanYear

Class %Library.FilemanYear [ ClassType = datatype, ClientDataType = VARCHAR, OdbcType = VARCHAR, SqlCategory = STRING, System = 2 ]

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

Parameters

XSDTYPE

Parameter XSDTYPE = "string";

JSONTYPE

Parameter JSONTYPE = "string";

COLLATION

Parameter COLLATION = "STRING";

Methods

XSDToLogical

ClassMethod XSDToLogical(%val As %String) As %FilemanYear [ CodeMode = generator ]

LogicalToXSD

ClassMethod LogicalToXSD(%val As %FilemanYear) As %String [ CodeMode = generator ]

Converts the %FilemanYear value to the canonical SOAP encoded value.

JSONToLogical

ClassMethod JSONToLogical(%val As %String) As %FilemanYear [ CodeMode = generator ]

LogicalToJSON

ClassMethod LogicalToJSON(%val As %FilemanYear) As %String [ CodeMode = generator ]

Converts the logical %FilemanYear value to the JSON string value.

IsValid

ClassMethod IsValid(%val As %RawString) As %Status [ CodeMode = generator, ServerOnly = 0 ]

Checks for Invalid format, expects FILEMAN format YEAR (CYY0000). Can handle data on disk in the Fileman TimeStamp format.

LogicalToDisplay

ClassMethod LogicalToDisplay(Arg1 As %Library.FilemanYear = "") As %Library.String [ CodeMode = generator, ServerOnly = 0 ]

Converts FILEMAN format YEAR (CYY0000) to DISPLAY format YEAR (YYYY). Can handle data on disk in the Fileman TimeStamp format.

LogicalToOdbc

ClassMethod LogicalToOdbc(Arg1 As %Library.FilemanYear = "") As %Library.String [ CodeMode = generator ]

Converts FILEMAN format YEAR (CYY0000) to ODBC format YEAR (YYYY). Can handle data on disk in the Fileman TimeStamp format.

DisplayToLogical

ClassMethod DisplayToLogical(Arg1 As %Library.String) As %Library.FilemanYear [ ServerOnly = 0 ]

Converts DISPLAY format DATE (DD/MM/YYYY) to FILEMAN format YEAR (CYY0000).

OdbcToLogical

ClassMethod OdbcToLogical(Arg1 As %Library.String = "") As %Library.FilemanDate

Converts ODBC format DATE (YYYY-MM-DD) to FILEMAN format YEAR (CYY0000).

DateToLogical

ClassMethod DateToLogical(%val As %Library.String = "") As %Library.FilemanYear [ CodeMode = expression, ServerOnly = 1 ]

Converts %Date format DATE (+$H) to FILEMAN format YEAR (CYY0000).

TimeStampToLogical

ClassMethod TimeStampToLogical(%val As %Library.TimeStamp = "") As %Library.FilemanYear [ CodeMode = expression, ServerOnly = 1 ]

Converts %TimeStamp format TIMESTAMP (YYYY-MM-DD HH:MM:SS) to FILEMAN format YEAR (CYY0000).

LogicalToDate

ClassMethod LogicalToDate(%val As %Library.FilemanDate) As %Library.Date [ CodeMode = generator, ServerOnly = 1 ]

Converts FILEMAN format YEAR (CYY0000) to %Date format DATE (+$H)