Brought in another asset for Ray's eye form: moment
[openemr.git] / public / assets / moment-2-13-0 / src / lib / locale / en.js
blob20964cd9c1c2ea926399b1185e9cd36dc2404856
1 import './prototype';
2 import { getSetGlobalLocale } from './locales';
3 import toInt from '../utils/to-int';
5 getSetGlobalLocale('en', {
6     ordinalParse: /\d{1,2}(th|st|nd|rd)/,
7     ordinal : function (number) {
8         var b = number % 10,
9             output = (toInt(number % 100 / 10) === 1) ? 'th' :
10             (b === 1) ? 'st' :
11             (b === 2) ? 'nd' :
12             (b === 3) ? 'rd' : 'th';
13         return number + output;
14     }
15 });