Skip to main content Link Search Menu Expand Document (external link)

DateTimeFormatPart overview

This module implements a CVDateTimeFormatPart, which can be either a CVDateTimeFormatPlaceholder or a CVDateTimeFormatSeparator. These CVDateTimeFormatPart’s are used to describe the string representation of a DateTime. They are converted to CVTemplatePart’s to parse and format a CVDateTime


Table of contents


Destructors

toTemplatePart

Converts self to its CVTemplatePart equivalent

Signature

export declare const toTemplatePart: (
  context: CVDateTimeFormatContext.Type
) => MTypes.OneArgFunction<Type, CVTemplatePart.Type<string, any>>

Guards

isPlaceholder

Type guard

Signature

export declare const isPlaceholder: (u: Type) => u is CVDateTimeFormatPlaceholder.Type

isSeparator

Type guard

Signature

export declare const isSeparator: (u: Type) => u is CVDateTimeFormatSeparator.Type

Models

Type (type alias)

Type of a TemplatePart

Signature

export type Type = CVDateTimeFormatPlaceholder.Type | CVDateTimeFormatSeparator.Type