Taiwan Calendar
npm install moment-taiwan
If you want to work with Taiwan calendar system , you can use Bradwoo8621's plugin moment-taiwan
.
When installed, it will wrap moment
and moment will be able to format and parse Taiwan years. Here is a short example:
m = moment('104/01/01', 'tYY/MM/DD') // Parse a Taiwan date
m.format('tYY/MM/DD [is] YYYY/M/D') // 104/01/01 is 2015/01/01
m.twYear() // 104
The repository is located at github.com/bradwoo8621/moment-taiwan.
当前内容版权归 momentjs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 momentjs.com .