Moment.js 2.14.1 发布,JavaScript 日期处理
欢迎加入运维网交流群:263444886 http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://my.oschina.net/img/hot3.pngMoment.js 2.14.1 发布,改进记录:
2.14.1
[*] #3280 Fix typescript definitions
2.14.0 See full changelog
New Features
[*] #3233 Introduce month.isFormat for format/standalone discovery
[*]
#2848 Allow user to get/set the rounding method used when calculating>
[*] #3112 optimize configFromStringAndFormat
[*] #3147 Call calendar format function with moment context
[*] #3160 deprecate isDSTShifted
[*] #3175 make moment calendar extensible with ad-hoc options
[*] #3191 toDate returns a copy of the internal date object
[*] #3192 Adding support for rollup import.
[*] #3238 Handle empty object and empty array for creation as now
[*]
#3082 Use>
Bugfixes
[*] #3241 Escape all 24 mixed pieces, not only first 12 in computeMonthsParse
[*]
#3008 Object setter orders sets based on>
[*] #3177 Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)
[*] #3230 fix passing date with format string to ignore format string
[*] #3232 Fix negative 0 in certain diff cases
[*] #3235 Use proper locale inheritance for the base locale, fixes #3137
Moment.js 是一个简单易用的轻量级JavaScript日期处理类库,提供了日期格式化、日期解析等功能。它支持在浏览器和NodeJS两种环境中运行。此类库能够将给定的任意日期转换成多种不同的格式,具有强大的日期计算功能,同时也内置了能显示多样的日期形式的函数。另外,它也支持多种语言,你可以任意新增一种新的语言包。
页:
[1]