DateTimeFormatSeparator overview
This module implements a CVDateTimeFormatSeparator, which is one of the two constituents of a CVDateTimeFormatPart. To parse/format a CVDateTime, a CVDateTimeFormatSeparator is converted to a CVTemplateSeparator with the same value. It is an aesthetic element that makes the date easier to read for a human (e.g. a slash). But it contains no information pertaining to the CVDateTime itself.
Table of contents
Constructors
make
Separator constructor
Signature
export declare const make: (value: string) => Type
Getters
value
Returns the value property of self
Signature
export declare const value: MTypes.OneArgFunction<Type, string>
Instances
backslash
Backslash Separator instance
Signature
export declare const backslash: Type
colon
Colon Separator instance
Signature
export declare const colon: Type
comma
Comma Separator instance
Signature
export declare const comma: Type
dot
Dot Separator instance
Signature
export declare const dot: Type
hyphen
Hyphen Separator instance
Signature
export declare const hyphen: Type
slash
Slash Separator instance
Signature
export declare const slash: Type
space
Space Separator instance
Signature
export declare const space: Type
Models
Type (class)
Type that represents a CVDateTimeFormatSeparator
Signature
export declare class Type {
private constructor({ value }: 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)
value (property)
The separator
Signature
readonly value: string
Module markers
moduleTag
Module tag
Signature
export declare const moduleTag: "@parischap/conversions/formatting/DateTimeFormat/DateTimeFormatPart/DateTimeFormatSeparator/"