d3-time-format-thai
v1.0.1
Published
Thai locale for d3-time-format
Downloads
8
Readme
d3-time-format-thai
Usage
npm install d3-time-format-thai --save
timeFormat
and utcFormat
takes the same format string as d3-time-format
's.
See documentation
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