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.

34 lines
503 B

4 years ago
## Unicode Technical Report 35
### Subject
Implement a `format` function that takes 2 arguments:
4 years ago
- 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
- [www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table)