Options
All
  • Public
  • Public/Protected
  • All
Menu

Base formatter implementation that applies raw culture information formatting to a date and time value.

Type parameters

  • T

    The type of the options container.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private baseOptions_

baseOptions_: T

Protected formatInfo

formatInfo: DateTimeFormatInfo

Private optionsProviderConstructor_

optionsProviderConstructor_: object

Type declaration

Private optionsProvider_

optionsProvider_: OptionsProvider<T>

Protected resolvedOptions

resolvedOptions: T

Private specifiersFormatter_

specifiersFormatter_: CustomFormatter

Private value_

value_: Date

Methods

Protected applyOptions

  • applyOptions(value: Date): string

Private cleanup_

  • cleanup_(): void

format

  • format(format: string, value: Date): string
  • Converts the date to an equivalent string representation using specified format and culture formatting information.

    Parameters

    • format: string

      A format string containing formatting specifications.

    • value: Date

      The date to format.

    Returns string

    The formatted date value.

Protected getSpecifiersFormatter

Private innerFormat_

  • innerFormat_(format: string, value: Date): string

Private setValue_

  • setValue_(value: Date): void

Object literals

Private formatters_

formatters_: object

fullDateLongTime

  • fullDateLongTime(): string

fullDateShortTime

  • fullDateShortTime(): string

generalDateLongTime

  • generalDateLongTime(): string

generalDateShortTime

  • generalDateShortTime(): string

longDate

  • longDate(): string

longTime

  • longTime(): string

monthDate

  • monthDate(): string

rfc1123

  • rfc1123(): string

roundTrip

  • roundTrip(): string

shortDate

  • shortDate(): string

shortTime

  • shortTime(): string

sortable

  • sortable(): string

universalFull

  • universalFull(): string

universalSortable

  • universalSortable(): string

yearMonth

  • yearMonth(): string

Generated using TypeDoc