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 paIn
= moment
.defineLocale('pa-in', {
37 // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
38 months
: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
39 monthsShort
: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
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 ਵਜੇ'
54 nextWeek
: '[ਅਗਲਾ] dddd, 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 // Punjabi 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 Punjabi.
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.