Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

constructor

Properties

Static Private Readonly __allWeekdays

__allWeekdays: Weekday[] = ...

Static Private Readonly __weekdaysByPreference

__weekdaysByPreference: Weekday[][] = ...

Static Private Readonly _longMonthNames

_longMonthNames: [string, string, string, string, string, string, string, string, string, string, string, string] = ...

Static Private Readonly _longWeekdayNames

_longWeekdayNames: [string, string, string, string, string, string, string] = ...

Static Private Readonly _shortMonthNames

_shortMonthNames: [string, string, string, string, string, string, string, string, string, string, string, string] = ...

Static Private Readonly _shortWeekdayNames

_shortWeekdayNames: [string, string, string, string, string, string, string] = ...

Accessors

Static allWeekdays

Static longMonthNames

  • get longMonthNames(): [string, string, string, string, string, string, string, string, string, string, string, string]
  • Returns [string, string, string, string, string, string, string, string, string, string, string, string]

Static longWeekdayNames

  • get longWeekdayNames(): [string, string, string, string, string, string, string]

Static shortMonthNames

  • get shortMonthNames(): [string, string, string, string, string, string, string, string, string, string, string, string]
  • Returns [string, string, string, string, string, string, string, string, string, string, string, string]

Static shortWeekdayNames

  • get shortWeekdayNames(): [string, string, string, string, string, string, string]

Methods

Static Private _getFormatPart

Static buildDate

  • buildDate(day: Date, time: number): Date

Static compareDates

  • compareDates(date1: Date, date2: Date, dayOnly?: boolean): number
  • Parameters

    • date1: Date
    • date2: Date
    • dayOnly: boolean = false

    Returns number

Static dateInRange

  • dateInRange(date: Date, start: Date, end: Date): boolean

Static formatDate

Static formatEditDate

  • formatEditDate(date: Date): string

Static formatEditDateAndTime

  • formatEditDateAndTime(date: Date): string

Static formatEditTime

  • formatEditTime(date: Date): string

Static formatGoogleCalendarDates

  • formatGoogleCalendarDates(date: IDateModel): string

Static formatIsoDate

  • formatIsoDate(date: Date, separator?: string): string

Static formatLongDate

  • formatLongDate(date: Date): string

Static formatReadableDuration

  • formatReadableDuration(duration: number, zeroValueText?: string): string

Static formatSqlDate

  • formatSqlDate(date: Date, includeTime?: boolean, includeSeconds?: boolean): string
  • Parameters

    • date: Date
    • includeTime: boolean = true
    • includeSeconds: boolean = false

    Returns string

Static formatSqlTimestamp

  • formatSqlTimestamp(date: Date, includeTime?: boolean): number

Static formatTechnicalDate

  • formatTechnicalDate(date: Date): string

Static formatTime

  • formatTime(date: Date, withSuffix?: boolean): string

Static formatTimeSpan

  • formatTimeSpan(start: Date, end: Date, endOffset?: number): string

Static getAnnualDateOffset

Static getBusinessHoursByWeekday

Static getDayTimeInSeconds

  • getDayTimeInSeconds(date: Date): number

Static getNormalizedWeekday

  • getNormalizedWeekday(date: Date): number

Static getWeekOffset

  • getWeekOffset(date: Date, otherDate?: Date): number

Static getWeekdayNames

  • getWeekdayNames(weekday: Weekday): [string, string]

Static getWeekdaysByPreference

Static hasTimePart

  • hasTimePart(date: Date): boolean

Static indexOfDateInCollection

  • indexOfDateInCollection(dates: Date[], searchFor: Date, ignoreTime?: boolean): number
  • Parameters

    • dates: Date[]
    • searchFor: Date
    • ignoreTime: boolean = true

    Returns number

Static isValidDate

  • isValidDate(date: Date): boolean

Static moveDateToFuture

  • moveDateToFuture(date: Date, inWeeks?: number): Date

Static normalizeDate

  • normalizeDate(start: Date, isWeekView: boolean, useNextWeekForSundays?: boolean): Date
  • Parameters

    • start: Date
    • isWeekView: boolean
    • useNextWeekForSundays: boolean = false

    Returns Date

Static removeTimePart

  • removeTimePart(date: Date): Date

Static toTimeSpan

  • toTimeSpan(startTime: number, endTime: number, allowEmptyValue?: boolean): ITimeSpanModel

Static toWeekday

Static verifyDate

  • verifyDate(value: string | number | Date): Date

Generated using TypeDoc. API-Dokumentation v2.0.1816. Zur Startseite © Copyright 2023 TERMINGO GmbH. All rights reserved.