Constants
Constants::$MONTH_EN
Array containing standard romanized English names of all twelve Bikram Sambat calendar months.
The Constants::$MONTH_EN constant is an immutable array containing the official romanized English names of the twelve Bikram Sambat months. The array is indexed starting from 0 for Baisakh up to index 11 for Chaitra, making it convenient for looking up month names corresponding to numeric month values returned by date methods.
Import
use NepaliDateLibrary\Helper\Constants;Value
Constants::$MONTH_EN = [
"Baisakh",
"Jestha",
"Asar",
"Shrawan",
"Bhadra",
"Aswin",
"Kartik",
"Mangsir",
"Poush",
"Magh",
"Falgun",
"Chaitra",
];Month Index Table
| Index | English Name | Approximate Gregorian Window |
|---|---|---|
0 | "Baisakh" | Mid April to Mid May |
1 | "Jestha" | Mid May to Mid June |
2 | "Asar" | Mid June to Mid July |
3 | "Shrawan" | Mid July to Mid August |
4 | "Bhadra" | Mid August to Mid September |
5 | "Aswin" | Mid September to Mid October |
6 | "Kartik" | Mid October to Mid November |
7 | "Mangsir" | Mid November to Mid December |
8 | "Poush" | Mid December to Mid January |
9 | "Magh" | Mid January to Mid February |
10 | "Falgun" | Mid February to Mid March |
11 | "Chaitra" | Mid March to Mid April |
Example Usage
use NepaliDateLibrary\NepaliDate;
use NepaliDateLibrary\Helper\Constants;
$date = new NepaliDate('2081-07-15');
$monthIndex = $date->getMonth();
echo Constants::$MONTH_EN[$monthIndex]; // "Kartik"Related
Constants::$MONTH_SHORT_EN: Abbreviated three letter English month names.Constants::$MONTH_NP: Full Devanagari Nepali month names.
Advertisement
Constants::$NUMBER_NP
Array containing Devanagari numeral glyphs for digits zero through nine used for Nepali number localization.
Constants::$MONTH_NP
Array containing official Devanagari Nepali names of all twelve Bikram Sambat calendar months.