This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > %Library.FilemanTime

%Library.FilemanTime

datatype class %Library.FilemanTime

ODBC Type: TIME

Custom Time datatype designed to handle internal FILEMAN format Time (HHMMSS). A field defined as a TIME data type can accept many of the date/time entries, but only stores the TIME portion. Example: External: 15:09:43 Internal: 150943 It does not require any extra routines to function

Method Inventory

Parameters

parameter COLLATION = STRING;
The default collation value used for this data type.
parameter JSONTYPE = string;
parameter XSDTYPE = Time;

Methods

classmethod DisplayToLogical(Arg1 As %Library.String) as %Library.FilemanTime
Converts DISPLAY format TIME ([MM/DD/YYYY ]HH:MM:SS) to FILEMAN format Time (HHMMSS).
classmethod IsValid(%val As %CacheString) as %Status
Checks for Invalid Format, expects FILEMAN format Time (HHMMSS, 00:00:01 through 24:00:00).
classmethod LogicalToDisplay(Arg1 As %Library.FilemanTime = "") as %Library.String
Converts FILEMAN format TimeStamp (HHMMSS) to DISPLAY format TIME HH:MM:SS).
classmethod LogicalToOdbc(Arg1 As %Library.FilemanTime) as %Library.String
Converts FILEMAN format Time (HHMMSS) to ODBC format TIME (HH:MM:SS)
classmethod LogicalToXSD(%val As %Library.FilemanTime) as %String
Converts the %FilemanTime value to the canonical SOAP encoded value.
classmethod OdbcToLogical(Arg1 As %Library.String) as %Library.FilemanTimeStamp
Converts ODBC format TIMESTAMP (YYYY-MM-DD HH:MM:SS) to FILEMAN format TimeStamp (CYYMMDD.HHMMSS)
classmethod XSDToLogical(%val As %String) as %Library.FilemanTime
FeedbackOpens in a new window