Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/datetime/types

Index

Object literals

Const PHP_TO_DATE_FNS_FORMAT_TOKEN_MAP

PHP_TO_DATE_FNS_FORMAT_TOKEN_MAP: object
description

Maps a php date format token to an equivalent format token in date_fns

see

php Format tokens here https://www.php.net/manual/en/datetime.format.php

see

date-fns Format tokens here https://date-fns.org/v2.30.0/docs/format

A

A: string = "aa"

B

B: string = ""

D

D: string = "EEE"

F

F: string = "MMMM"

G

G: string = "H"

H

H: string = "HH"

I

I: string = ""

L

L: string = ""

M

M: string = "MMM"

N

N: string = "i"

O

O: string = "x"

P

P: string = "xxx"

T

T: string = ""

U

U: string = "t"

W

W: string = "I"

Y

Y: string = "yyyy"

Z

Z: string = ""

a

a: string = "a"

c

c: string = "YYYY-MM-DD[T]HH:mm:ssZZ"

d

d: string = "dd"

e

e: string = ""

g

g: string = "h"

h

h: string = "hh"

i

i: string = "mm"

j

j: string = "d"

jS

jS: string = "do"

l

l: string = "EEEE"

m

m: string = "MM"

n

n: string = "M"

o

o: string = "YYYY"

r

r: string = ""

s

s: string = "ss"

t

t: string = ""

u

u: string = "SSSS"

v

v: string = "SSS"

w

w: string = ""

y

y: string = "yy"

z

z: string = ""

Const PHP_TO_MOMENT_FORMAT_TOKEN_MAP

PHP_TO_MOMENT_FORMAT_TOKEN_MAP: object
description

Maps a php date format token to an equivalent format token in date_fns

see

php Format tokens here https://www.php.net/manual/en/datetime.format.php

see

moment Format tokens here https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/

A

A: string = "A"

B

B: string = ""

D

D: string = "ddd"

F

F: string = "MMMM"

G

G: string = "H"

H

H: string = "HH"

I

I: string = ""

L

L: string = ""

M

M: string = "MMM"

N

N: string = "E"

O

O: string = "ZZ"

P

P: string = "Z"

S

S: string = "o"

T

T: string = "z"

U

U: string = "X"

W

W: string = "W"

Y

Y: string = "YYYY"

Z

Z: string = ""

a

a: string = "a"

c

c: string = "YYYY-MM-DD[T]HH:mm:ssZ"

d

d: string = "DD"

e

e: string = "zz"

g

g: string = "h"

h

h: string = "hh"

i

i: string = "mm"

j

j: string = "D"

l

l: string = "dddd"

m

m: string = "MM"

n

n: string = "M"

o

o: string = "YYYY"

r

r: string = "ddd, DD MMM YYYY HH:mm:ss ZZ"

s

s: string = "ss"

t

t: string = ""

u

u: string = "SSSSSS"

v

v: string = "SSS"

w

w: string = "e"

y

y: string = "YY"

z

z: string = "DDD"

Generated using TypeDoc