1 //! moment.js locale configuration
2 //! locale : Gujarati [gu]
3 //! author : Kaushik Thanki : https://github.com/Kaushik1987
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 }(this, (function (moment) { 'use strict';
12 //! moment.js locale configuration
39 var gu = moment.defineLocale('gu', {
40 months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
43 monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
46 monthsParseExact: true,
47 weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
50 weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
51 weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
54 LTS: 'A h:mm:ss વાગ્યે',
57 LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
58 LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
64 lastDay: '[ગઇકાલે] LT',
65 lastWeek: '[પાછલા] dddd, LT',
84 preparse: function (string) {
85 return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
86 return numberMap[match];
89 postformat: function (string) {
90 return string.replace(/\d/g, function (match) {
91 return symbolMap[match];
94 // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
95 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
96 meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
97 meridiemHour: function (hour, meridiem) {
101 if (meridiem === 'રાત') {
102 return hour < 4 ? hour : hour + 12;
103 } else if (meridiem === 'સવાર') {
105 } else if (meridiem === 'બપોર') {
106 return hour >= 10 ? hour : hour + 12;
107 } else if (meridiem === 'સાંજ') {
111 meridiem: function (hour, minute, isLower) {
114 } else if (hour < 10) {
116 } else if (hour < 17) {
118 } else if (hour < 20) {
125 dow: 0, // Sunday is the first day of the week.
126 doy: 6, // The week that contains Jan 6th is the first week of the year.