-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
96 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Illuminate\Support\Date; | ||
|
||
enum Day: int | ||
{ | ||
case Sunday = 0; | ||
case Monday = 1; | ||
case Tuesday = 2; | ||
case Wednesday = 3; | ||
case Thursday = 4; | ||
case Friday = 5; | ||
case Saturday = 6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Illuminate\Support\Date; | ||
|
||
enum Month: int | ||
{ | ||
case January = 1; | ||
case February = 2; | ||
case March = 3; | ||
case April = 4; | ||
case May = 5; | ||
case June = 6; | ||
case July = 7; | ||
case August = 8; | ||
case September = 9; | ||
case October = 10; | ||
case November = 11; | ||
case December = 12; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Illuminate\Support\Date; | ||
|
||
if (! defined('SECONDS_PER_MINUTE')) { | ||
define('SECONDS_PER_MINUTE', 60); | ||
} | ||
|
||
if (! defined('MINUTES_PER_HOUR')) { | ||
define('MINUTES_PER_HOUR', 60); | ||
} | ||
|
||
if (! defined('HOURS_PER_DAY')) { | ||
define('HOURS_PER_DAY', 24); | ||
} | ||
|
||
if (! defined('DAYS_PER_WEEK')) { | ||
define('DAYS_PER_WEEK', 7); | ||
} | ||
|
||
if (! defined('MONTHS_PER_YEAR')) { | ||
define('MONTHS_PER_YEAR', 12); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters