Constants
Constants::$WEEK_EN
Array containing full English names for all seven days of the week starting from Sunday.
The Constants::$WEEK_EN constant is an array containing the full English weekday names ordered from Sunday at index 0 through Saturday at index 6. This ordering matches the standard day index convention returned by date methods, allowing seamless weekday lookups in English interfaces.
Import
use NepaliDateLibrary\Helper\Constants;Value
Constants::$WEEK_EN = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
];Weekday Index Table
| Index | English Name | Nepali Equivalent |
|---|---|---|
0 | "Sunday" | Aaitabar |
1 | "Monday" | Sombar |
2 | "Tuesday" | Mangalbar |
3 | "Wednesday" | Budhabar |
4 | "Thursday" | Bihibar |
5 | "Friday" | Sukrabar |
6 | "Saturday" | Shanibar |
Example Usage
use NepaliDateLibrary\NepaliDate;
use NepaliDateLibrary\Helper\Constants;
$date = new NepaliDate('2081-07-15');
echo Constants::$WEEK_EN[$date->getDay()]; // "Friday"Related
Constants::$WEEK_SHORT_EN: Abbreviated three letter English weekday names.Constants::$WEEK_NP: Full Devanagari Nepali weekday names.
Advertisement
Constants::$MONTH_SHORT_NP
Array containing abbreviated Devanagari Nepali names for all twelve Bikram Sambat calendar months.
Constants::$WEEK_NP
Array containing full Devanagari Nepali names for all seven days of the week starting from Sunday.