Comparing version 0.2.1 to 0.3.0
@@ -6,9 +6,15 @@ // Generated by CoffeeScript 1.6.3 | ||
var tzid, zone, zones, _fn; | ||
moment.formats = { | ||
day: 'YYYY-MM-DD', | ||
numberedDay: 'YYYYMMDD', | ||
abbrv: 'ddd, MMM Do', | ||
long: 'dddd, MMMM Do', | ||
short: 'MMM D', | ||
weekday: 'dddd' | ||
}; | ||
moment.day = function(day, tzid) { | ||
return moment.tz(day, [moment.day.DASHED_DAY, moment.day.NUMBER_DAY], tzid); | ||
return moment.tz(day, [moment.formats.day, moment.formats.numberedDay], tzid); | ||
}; | ||
moment.day.DASHED_DAY = 'YYYY-MM-DD'; | ||
moment.day.NUMBER_DAY = 'YYYYMMDD'; | ||
moment.fn.toDay = function() { | ||
return this.format(moment.day.DASHED_DAY); | ||
moment.fn.dayString = function() { | ||
return this.format(moment.formats.day); | ||
}; | ||
@@ -18,2 +24,3 @@ zones = { | ||
central: 'America/Chicago', | ||
mountain: 'America/Denver', | ||
pacific: 'America/Los_Angeles' | ||
@@ -20,0 +27,0 @@ }; |
@@ -8,3 +8,3 @@ // Generated by CoffeeScript 1.6.3 | ||
usa = require('../data/usa.json'); | ||
usa = require('../data/usa'); | ||
@@ -11,0 +11,0 @@ moment.tz.add(usa); |
{ | ||
"name": "geomoment", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "moment-timezone, if moment-timezone forced you to choose a particular moment in time. also, some extra sugar.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8374
134