Class: DateTimeConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
8.1.0

F24337-01

QuickNav


DateTimeConverterFactory

Version:
  • 8.1.0
Since:
  • 0.6.0
Module:
  • ojvalidationfactory-datetime

Module usage

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

Javascript Import Format
define(['ojs/ojvalidationfactory-datetime'], function(validationfactoryDatetime) {
 // Application should call API on validationfactoryDatetime.DateTimeConverterFactory 
})
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/ojvalidationfactory-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.

Deprecated:
Since Description
8.0.0 Directly create new instances of DateTimeConverter instead.
A factory implementation to create the built-in datetime converter of type oj.IntlDateTimeConverter.
Deprecated:
Since Description
8.0.0 Directly create new instances of DateTimeConverter instead.

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