1 //! moment.js locale configuration
2 //! locale : Bengali (bn)
3 //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
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';
38 var bn = moment.defineLocale('bn', {
39 months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
40 monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
41 weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার'.split('_'),
42 weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি'.split('_'),
43 weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
46 LTS : 'A h:mm:ss সময়',
49 LLL : 'D MMMM YYYY, A h:mm সময়',
50 LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
54 nextDay : '[আগামীকাল] LT',
55 nextWeek : 'dddd, LT',
56 lastDay : '[গতকাল] LT',
57 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 meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
86 meridiemHour : function (hour, meridiem) {
90 if ((meridiem === 'রাত' && hour >= 4) ||
91 (meridiem === 'দুপুর' && hour < 5) ||
92 meridiem === 'বিকাল') {
98 meridiem : function (hour, minute, isLower) {
101 } else if (hour < 10) {
103 } else if (hour < 17) {
105 } else if (hour < 20) {
112 dow : 0, // Sunday is the first day of the week.
113 doy : 6 // The week that contains Jan 1st is the first week of the year.