Class: DateTimeConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


DateTimeConverterFactory

Version:
  • 7.1.0
Since:
  • 0.6
Module:
  • ojvalidation-datetime

Module usage

See JET Module Loading for an overview of module usage within JET.

Typescript Import Format
//This class is not exported from module and can not be accessed in runtime.
//However to enable typechecking and ducktyping, you can access it as an interface.
import {DateTimeConverterFactory} from "ojs/ojvalidation-datetime";

//To access this type in your code,
class MyClass implements DateTimeConverterFactory{
//or,
let myVariable: DateTimeConverterFactory;

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

A factory implementation to create the built-in datetime converter of type oj.IntlDateTimeConverter.

Methods

createConverter(options) → {oj.IntlDateTimeConverter}

Creates an immutable (jet) datetime converter instance.
Parameters:
Name Type Argument Description
options oj.IntlDateTimeConverter.ConverterOptions <optional>
an object literal used to provide an optional information to initialize the jet datetime converter. For details on what to pass for options, refer to oj.IntlDateTimeConverter.
Returns:
Type
oj.IntlDateTimeConverter