Options
All
  • Public
  • Public/Protected
  • All
Menu

Angular injectable version of Culture class

Hierarchy

  • Culture
    • CultureService

Index

Constructors

constructor

Properties

currentLocale

currentLocale: string

Methods

compare

  • compare(x: string, y: string, options: CollatorOptions): number
  • Parameters

    • x: string
    • y: string
    • options: CollatorOptions

    Returns number

formatDate

  • formatDate(value: Date | number | string, options: DateTimeFormatOptions): string
  • Parameters

    • value: Date | number | string
    • options: DateTimeFormatOptions

    Returns string

formatDateRange

  • formatDateRange(start: Date | number | string, end: Date | number | string, options?: DateTimeFormatOptions): string
  • Parameters

    • start: Date | number | string
    • end: Date | number | string
    • Optional options: DateTimeFormatOptions

    Returns string

formatNumber

  • formatNumber(value: number, options: NumberFormatOptions): string
  • Parameters

    • value: number
    • options: NumberFormatOptions

    Returns string

formatTimeRange

  • formatTimeRange(start: Date | number | string, end: Date | number | string, options?: DateTimeFormatOptions): string
  • Parameters

    • start: Date | number | string
    • end: Date | number | string
    • Optional options: DateTimeFormatOptions

    Returns string

parseDate

  • parseDate(date: string, defaultValue?: Date): Date
  • Parameters

    • date: string
    • Optional defaultValue: Date

    Returns Date

Generated using TypeDoc