1 //! moment.js locale configuration
3 ;(function (global
, factory
) {
4 typeof exports
=== 'object' && typeof module
!== 'undefined'
5 && typeof require
=== 'function' ? factory(require('../moment')) :
6 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
8 }(this, (function (moment
) { 'use strict';
36 var gu
= moment
.defineLocale('gu', {
37 months
: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
38 monthsShort
: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
39 monthsParseExact
: true,
40 weekdays
: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
41 weekdaysShort
: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
42 weekdaysMin
: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
45 LTS
: 'A h:mm:ss વાગ્યે',
48 LLL
: 'D MMMM YYYY, A h:mm વાગ્યે',
49 LLLL
: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
55 lastDay
: '[ગઇકાલે] LT',
56 lastWeek
: '[પાછલા] dddd, LT',
75 preparse: function (string
) {
76 return string
.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match
) {
77 return numberMap
[match
];
80 postformat: function (string
) {
81 return string
.replace(/\d/g, function (match
) {
82 return symbolMap
[match
];
85 // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
86 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
87 meridiemParse
: /રાત|બપોર|સવાર|સાંજ/,
88 meridiemHour: function (hour
, meridiem
) {
92 if (meridiem
=== 'રાત') {
93 return hour
< 4 ? hour
: hour
+ 12;
94 } else if (meridiem
=== 'સવાર') {
96 } else if (meridiem
=== 'બપોર') {
97 return hour
>= 10 ? hour
: hour
+ 12;
98 } else if (meridiem
=== 'સાંજ') {
102 meridiem: function (hour
, minute
, isLower
) {
105 } else if (hour
< 10) {
107 } else if (hour
< 17) {
109 } else if (hour
< 20) {
116 dow
: 0, // Sunday is the first day of the week.
117 doy
: 6 // The week that contains Jan 6th is the first week of the year.