DateTimeFormatPlaceholder overview
This module implements a CVDateTimeFormatPlaceholder, which is one of the two constituents of a CVDateTimeFormatPart. To parse/format a CVDateTime, a CVDateTimeFormatPlaceholder is converted to a CVTemplatePlaceholder thanks to a CVDateTimeFormatContext which contains a mapping between the two based on the CVDateTimeFormatToken key
Table of contents
Constructors
make
Placeholder constructor
Signature
export declare const make: (token: CVDateTimeFormatToken.Type) => Type
Getters
token
Returns the token property of self
Signature
export declare const token: MTypes.OneArgFunction<Type, CVDateTimeFormatToken.Type>
Models
Type (class)
Type that represents a CVDateTimeFormatPlaceholder
Signature
export declare class Type {
private constructor({ token }: MTypes.Data<Type>)
}
make (static method)
Static constructor
Signature
static make(params: MTypes.Data<Type>): Type
[MData.idSymbol] (method)
Returns the id of this
Signature
[MData.idSymbol](): string | (() => string)
token (property)
Name of this Placeholder
Signature
readonly token: CVDateTimeFormatToken.Type
Module markers
moduleTag
Module tag
Signature
export declare const moduleTag: "@parischap/conversions/formatting/DateTimeFormat/DateTimeFormatPart/DateTimeFormatPlaceholder/"