You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
430 B

5 years ago
## Unicode Technical Report 35
### Subject
Implement a `format` function that takes 2 arguments:
- a valid javascript Date object
- a format string that handle all of the following fields:
- y
- yyyy
- G
- GGGG
- M
- MM
- MMM
- MMMM
- d
- dd
- E
- EEEE
- h
- hh
- m
- mm
- s
- ss
- H
- HH
- a
### Notions
- https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table