d3-time-format-thai
Version:
Thai locale for d3-time-format
24 lines (15 loc) • 484 B
Markdown
# d3-time-format-thai
## Usage
```sh
npm install d3-time-format-thai --save
```
`timeFormat` and `utcFormat` takes the same format string as `d3-time-format`'s.
[See documentation](https://github.com/d3/d3-time-format)
```ts
import { timeFormat, utcFormat } from 'd3-time-format-thai';
console.log(timeFormat('%a %0d %b')(new Date(2019, 10, 1)));
// ศ. 01 พ.ย.
```
The library was written in Typescript and provide typings as part of the package.
### License
Apache-2.0