-
Notifications
You must be signed in to change notification settings - Fork 2
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
5 changed files
with
132 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ php: | |
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
- nightly | ||
env: | ||
- PREFER_LOWEST="--prefer-lowest --prefer-stable" | ||
|
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,51 @@ | ||
<?php | ||
|
||
namespace SubjectivePHP\DateTime\Constants; | ||
|
||
interface DateFormatInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_HTTP_HEADER = 'D, d M Y H:i:s T'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_ISO_8601 = 'c'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_LONG_DATE = 'l, F d, Y'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_LONG_TIME = 'H:i:s'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_RFC_2822 = 'r'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_SHORT_DATE = 'm/d/Y'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_SHORT_TIME = 'g:i A'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_SORTABLE_DATETIME = 'Y-m-d H:i:s'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const DATE_FORMAT_YEAR_MONTH = 'F Y'; | ||
} |
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,75 @@ | ||
<?php | ||
namespace SubjectivePHP\DateTime\Constants; | ||
|
||
interface DayOfWeekInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
const ISO_WEDNESDAY = '3'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const ISO_THURSDAY = '4'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const ISO_FRIDAY = '5'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const ISO_SATURDAY = '6'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const ISO_SUNDAY = '7'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const SUNDAY = '0'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const ISO_MONDAY = '1'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const ISO_TUESDAY = '2'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const MONDAY = '1'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const TUESDAY = '2'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const WEDNESDAY = '3'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const THURSDAY = '4'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const FRIDAY = '5'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
const 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