Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "operators/expression/date/_internal"

Index

Variables

Const DATE_FORMAT

DATE_FORMAT: "%Y-%m-%dT%H:%M:%S.%LZ" = "%Y-%m-%dT%H:%M:%S.%LZ"

Const DATE_PART_INTERVAL

DATE_PART_INTERVAL: (string | number)[][] = [["year", 0, 9999],["month", 1, 12],["day", 1, 31],["hour", 0, 23],["minute", 0, 59],["second", 0, 59],["millisecond", 0, 999],]

Const MILLIS_PER_DAY

MILLIS_PER_DAY: number = 1000 * 60 * 60 * 24

Const MINUTES_PER_HOUR

MINUTES_PER_HOUR: 60 = 60

Functions

adjustDate

  • adjustDate(d: Date, tz: Timezone): void

computeDate

formatTimezone

padDigits

  • padDigits(n: number, digits: number): string

parseTimezone

  • parseTimezone(tzstr?: string): Timezone

regexQuote

  • regexQuote(s: string): string

regexStrip

  • regexStrip(s: string): string

Object literals

Const DATE_SYM_TABLE

DATE_SYM_TABLE: object

%G

%G: object

name

name: string = "year"

padding

padding: number = 4

re

re: RegExp = /([0-9]{4})/

%H

%H: object

name

name: string = "hour"

padding

padding: number = 2

re

re: RegExp = /([01][0-9]|2[0-3])/

%L

%L: object

name

name: string = "millisecond"

padding

padding: number = 3

re

re: RegExp = /([0-9]{3})/

%M

%M: object

name

name: string = "minute"

padding

padding: number = 2

re

re: RegExp = /([0-5][0-9])/

%S

%S: object

name

name: string = "second"

padding

padding: number = 2

re

re: RegExp = /([0-5][0-9]|60)/

%V

%V: object

name

name: string = "week"

padding

padding: number = 1

re

re: RegExp = /([1-4][0-9]?|5[0-3]?)/

%Y

%Y: object

name

name: string = "year"

padding

padding: number = 4

re

re: RegExp = /([0-9]{4})/

%Z

%Z: object

name

name: string = "minuteOffset"

padding

padding: number = 3

re

re: RegExp = /([+-][0-9]{3})/

%d

%d: object

name

name: string = "day"

padding

padding: number = 2

re

re: RegExp = /(0[1-9]|[12][0-9]|3[01])/

%m

%m: object

name

name: string = "month"

padding

padding: number = 2

re

re: RegExp = /(0[1-9]|1[012])/

%u

%u: object

name

name: string = "weekDay"

padding

padding: number = 1

re

re: RegExp = /([1-7])/

%z

%z: object

name

name: string = "timezone"

padding

padding: number = 2

re

re: RegExp = /(([+-][01][0-9]|2[0-3]):?([0-5][0-9])?)/

Generated using TypeDoc