gregorian-calendar
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "gregorian-calendar", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"author": "yiminghe <yiminghe@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "date time utils ported from java", |
@@ -20,3 +20,3 @@ # gregorian-calendar | ||
var GregorianCalendar = require('gregorian-calendar'); | ||
var date = new GregorianCalendar(require('gregorian-calendar/lib/locale/zh-cn')); // defaults to en-us | ||
var date = new GregorianCalendar(require('gregorian-calendar/lib/locale/zh_CN')); // defaults to en_US | ||
date.setTime(+new Date()); | ||
@@ -30,3 +30,4 @@ console.log(date.getDayOfWeek()); | ||
* locale: specify suc as timeZoneOffset, firstDayOfWeek, can be require('gregorian-calendar/lib/locale/zh-cn') or require('gregorian-calendar/lib/locale/en-us') | ||
* locale: specify suc as timeZoneOffset, firstDayOfWeek, can be require('gregorian-calendar/lib/locale/zh_CN') or | ||
require('gregorian-calendar/lib/locale/en_US') | ||
@@ -33,0 +34,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52642
308