-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35863b3
commit 8e8b2a1
Showing
308 changed files
with
78,895 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "moment", | ||
"version": "2.10.3", | ||
"main": "moment.js", | ||
"ignore": [ | ||
"**/.*", | ||
"benchmarks", | ||
"bower_components", | ||
"meteor", | ||
"node_modules", | ||
"scripts", | ||
"tasks", | ||
"test", | ||
"component.json", | ||
"composer.json", | ||
"CONTRIBUTING.md", | ||
"ender.js", | ||
"Gruntfile.js", | ||
"Moment.js.nuspec", | ||
"package.js", | ||
"package.json" | ||
], | ||
"homepage": "https://github.com/moment/moment", | ||
"_release": "2.10.3", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "2.10.3", | ||
"commit": "6fa444238494318e3c488c81d8520ad2eba8bae7" | ||
}, | ||
"_source": "git://github.com/moment/moment.git", | ||
"_target": "~2.10.3", | ||
"_originalSource": "moment", | ||
"_direct": true | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Copyright (c) 2011-2015 Tim Wood, Iskren Chernev, Moment.js contributors | ||
|
||
Permission is hereby granted, free of charge, to any person | ||
obtaining a copy of this software and associated documentation | ||
files (the "Software"), to deal in the Software without | ||
restriction, including without limitation the rights to use, | ||
copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[](https://gitter.im/moment/moment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
|
||
[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url] | ||
|
||
A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates. | ||
|
||
## [Documentation](http://momentjs.com/docs/) | ||
|
||
## Port to ES6 (version 2.10.0) | ||
|
||
Moment 2.10.0 does not bring any new features, but the code is now written in | ||
es6 modules and placed inside `src/`. Previously `moment.js`, `locale/*.js` and | ||
`test/moment/*.js`, `test/locale/*.js` contained the source of the project. Now | ||
the source is in `src/`, temporary build (es5) files are placed under | ||
`build/umd/` (for running tests during development), and the `moment.js` and | ||
`locale/*.js` files are updated only on release. | ||
|
||
If you want to use a particular revision of the code, make sure to run | ||
`grunt transpile update-index`, so `moment.js` and `locales/*.js` are synced | ||
with `src/*`. We might place that in a commit hook in the future. | ||
|
||
## Upgrading to 2.0.0 | ||
|
||
There are a number of small backwards incompatible changes with version 2.0.0. [See the full descriptions here](https://gist.github.com/timrwood/e72f2eef320ed9e37c51#backwards-incompatible-changes) | ||
|
||
* Changed language ordinal method to return the number + ordinal instead of just the ordinal. | ||
|
||
* Changed two digit year parsing cutoff to match strptime. | ||
|
||
* Removed `moment#sod` and `moment#eod` in favor of `moment#startOf` and `moment#endOf`. | ||
|
||
* Removed `moment.humanizeDuration()` in favor of `moment.duration().humanize()`. | ||
|
||
* Removed the lang data objects from the top level namespace. | ||
|
||
* Duplicate `Date` passed to `moment()` instead of referencing it. | ||
|
||
## [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) | ||
|
||
## [Contributing](https://github.com/moment/moment/blob/develop/CONTRIBUTING.md) | ||
|
||
We're looking for co-maintainers! If you want to become a master of time please | ||
write to [ichernev](https://github.com/ichernev). | ||
|
||
## License | ||
|
||
Moment.js is freely distributable under the terms of the [MIT license](https://github.com/moment/moment/blob/develop/LICENSE). | ||
|
||
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat | ||
[license-url]: LICENSE | ||
|
||
[npm-url]: https://npmjs.org/package/moment | ||
[npm-version-image]: http://img.shields.io/npm/v/moment.svg?style=flat | ||
[npm-downloads-image]: http://img.shields.io/npm/dm/moment.svg?style=flat | ||
|
||
[travis-url]: http://travis-ci.org/moment/moment | ||
[travis-image]: http://img.shields.io/travis/moment/moment/develop.svg?style=flat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "moment", | ||
"version": "2.10.3", | ||
"main": "moment.js", | ||
"ignore": [ | ||
"**/.*", | ||
"benchmarks", | ||
"bower_components", | ||
"meteor", | ||
"node_modules", | ||
"scripts", | ||
"tasks", | ||
"test", | ||
"component.json", | ||
"composer.json", | ||
"CONTRIBUTING.md", | ||
"ender.js", | ||
"Gruntfile.js", | ||
"Moment.js.nuspec", | ||
"package.js", | ||
"package.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
//! moment.js locale configuration | ||
//! locale : afrikaans (af) | ||
//! author : Werner Mollentze : https://github.com/wernerm | ||
|
||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : | ||
typeof define === 'function' && define.amd ? define(['moment'], factory) : | ||
factory(global.moment) | ||
}(this, function (moment) { 'use strict'; | ||
|
||
|
||
var af = moment.defineLocale('af', { | ||
months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'), | ||
monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), | ||
weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), | ||
weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), | ||
weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), | ||
meridiemParse: /vm|nm/i, | ||
isPM : function (input) { | ||
return /^nm$/i.test(input); | ||
}, | ||
meridiem : function (hours, minutes, isLower) { | ||
if (hours < 12) { | ||
return isLower ? 'vm' : 'VM'; | ||
} else { | ||
return isLower ? 'nm' : 'NM'; | ||
} | ||
}, | ||
longDateFormat : { | ||
LT : 'HH:mm', | ||
LTS : 'LT:ss', | ||
L : 'DD/MM/YYYY', | ||
LL : 'D MMMM YYYY', | ||
LLL : 'D MMMM YYYY LT', | ||
LLLL : 'dddd, D MMMM YYYY LT' | ||
}, | ||
calendar : { | ||
sameDay : '[Vandag om] LT', | ||
nextDay : '[Môre om] LT', | ||
nextWeek : 'dddd [om] LT', | ||
lastDay : '[Gister om] LT', | ||
lastWeek : '[Laas] dddd [om] LT', | ||
sameElse : 'L' | ||
}, | ||
relativeTime : { | ||
future : 'oor %s', | ||
past : '%s gelede', | ||
s : '\'n paar sekondes', | ||
m : '\'n minuut', | ||
mm : '%d minute', | ||
h : '\'n uur', | ||
hh : '%d ure', | ||
d : '\'n dag', | ||
dd : '%d dae', | ||
M : '\'n maand', | ||
MM : '%d maande', | ||
y : '\'n jaar', | ||
yy : '%d jaar' | ||
}, | ||
ordinalParse: /\d{1,2}(ste|de)/, | ||
ordinal : function (number) { | ||
return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter | ||
}, | ||
week : { | ||
dow : 1, // Maandag is die eerste dag van die week. | ||
doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar. | ||
} | ||
}); | ||
|
||
return af; | ||
|
||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
//! moment.js locale configuration | ||
//! locale : Moroccan Arabic (ar-ma) | ||
//! author : ElFadili Yassine : https://github.com/ElFadiliY | ||
//! author : Abdel Said : https://github.com/abdelsaid | ||
|
||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : | ||
typeof define === 'function' && define.amd ? define(['moment'], factory) : | ||
factory(global.moment) | ||
}(this, function (moment) { 'use strict'; | ||
|
||
|
||
var ar_ma = moment.defineLocale('ar-ma', { | ||
months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), | ||
monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), | ||
weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), | ||
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
longDateFormat : { | ||
LT : 'HH:mm', | ||
LTS : 'LT:ss', | ||
L : 'DD/MM/YYYY', | ||
LL : 'D MMMM YYYY', | ||
LLL : 'D MMMM YYYY LT', | ||
LLLL : 'dddd D MMMM YYYY LT' | ||
}, | ||
calendar : { | ||
sameDay: '[اليوم على الساعة] LT', | ||
nextDay: '[غدا على الساعة] LT', | ||
nextWeek: 'dddd [على الساعة] LT', | ||
lastDay: '[أمس على الساعة] LT', | ||
lastWeek: 'dddd [على الساعة] LT', | ||
sameElse: 'L' | ||
}, | ||
relativeTime : { | ||
future : 'في %s', | ||
past : 'منذ %s', | ||
s : 'ثوان', | ||
m : 'دقيقة', | ||
mm : '%d دقائق', | ||
h : 'ساعة', | ||
hh : '%d ساعات', | ||
d : 'يوم', | ||
dd : '%d أيام', | ||
M : 'شهر', | ||
MM : '%d أشهر', | ||
y : 'سنة', | ||
yy : '%d سنوات' | ||
}, | ||
week : { | ||
dow : 6, // Saturday is the first day of the week. | ||
doy : 12 // The week that contains Jan 1st is the first week of the year. | ||
} | ||
}); | ||
|
||
return ar_ma; | ||
|
||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
//! moment.js locale configuration | ||
//! locale : Arabic Saudi Arabia (ar-sa) | ||
//! author : Suhail Alkowaileet : https://github.com/xsoh | ||
|
||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : | ||
typeof define === 'function' && define.amd ? define(['moment'], factory) : | ||
factory(global.moment) | ||
}(this, function (moment) { 'use strict'; | ||
|
||
|
||
var symbolMap = { | ||
'1': '١', | ||
'2': '٢', | ||
'3': '٣', | ||
'4': '٤', | ||
'5': '٥', | ||
'6': '٦', | ||
'7': '٧', | ||
'8': '٨', | ||
'9': '٩', | ||
'0': '٠' | ||
}, numberMap = { | ||
'١': '1', | ||
'٢': '2', | ||
'٣': '3', | ||
'٤': '4', | ||
'٥': '5', | ||
'٦': '6', | ||
'٧': '7', | ||
'٨': '8', | ||
'٩': '9', | ||
'٠': '0' | ||
}; | ||
|
||
var ar_sa = moment.defineLocale('ar-sa', { | ||
months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), | ||
monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), | ||
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), | ||
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
longDateFormat : { | ||
LT : 'HH:mm', | ||
LTS : 'HH:mm:ss', | ||
L : 'DD/MM/YYYY', | ||
LL : 'D MMMM YYYY', | ||
LLL : 'D MMMM YYYY LT', | ||
LLLL : 'dddd D MMMM YYYY LT' | ||
}, | ||
meridiemParse: /ص|م/, | ||
isPM : function (input) { | ||
return 'م' === input; | ||
}, | ||
meridiem : function (hour, minute, isLower) { | ||
if (hour < 12) { | ||
return 'ص'; | ||
} else { | ||
return 'م'; | ||
} | ||
}, | ||
calendar : { | ||
sameDay: '[اليوم على الساعة] LT', | ||
nextDay: '[غدا على الساعة] LT', | ||
nextWeek: 'dddd [على الساعة] LT', | ||
lastDay: '[أمس على الساعة] LT', | ||
lastWeek: 'dddd [على الساعة] LT', | ||
sameElse: 'L' | ||
}, | ||
relativeTime : { | ||
future : 'في %s', | ||
past : 'منذ %s', | ||
s : 'ثوان', | ||
m : 'دقيقة', | ||
mm : '%d دقائق', | ||
h : 'ساعة', | ||
hh : '%d ساعات', | ||
d : 'يوم', | ||
dd : '%d أيام', | ||
M : 'شهر', | ||
MM : '%d أشهر', | ||
y : 'سنة', | ||
yy : '%d سنوات' | ||
}, | ||
preparse: function (string) { | ||
return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { | ||
return numberMap[match]; | ||
}).replace(/،/g, ','); | ||
}, | ||
postformat: function (string) { | ||
return string.replace(/\d/g, function (match) { | ||
return symbolMap[match]; | ||
}).replace(/,/g, '،'); | ||
}, | ||
week : { | ||
dow : 6, // Saturday is the first day of the week. | ||
doy : 12 // The week that contains Jan 1st is the first week of the year. | ||
} | ||
}); | ||
|
||
return ar_sa; | ||
|
||
})); |
Oops, something went wrong.