Skip to content

Commit 330a284

Browse files
committed
Update README.md
1 parent d302278 commit 330a284

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,24 @@ print $dateRange->getTo()?->format('Y-m-d H:i:s (e)');
106106
107107
* Imagine that now is the time: `2023-07-07 12:34:56`
108108
109-
| Given format | Description | From `('Y-m-d H:i:s')` | To `('Y-m-d H:i:s')` |
110-
|-----------------------------------------|---------------------------------------------------------|--------------------------------------|--------------------------------------|
111-
| <nobr>`"tomorrow"`</nobr> | Returns the date range from tomorrow. | <nobr>`"2023-07-08 00:00:00"`</nobr> | <nobr>`"2023-07-08 23:59:59"`</nobr> |
112-
| <nobr>`"=tomorrow"`</nobr> | Alias of `"tomorrow"`. | <nobr>`"2023-07-08 00:00:00"`</nobr> | <nobr>`"2023-07-08 23:59:59"`</nobr> |
113-
| <nobr>`"today"`</nobr> | Returns the date range from today. | <nobr>`"2023-07-07 00:00:00"`</nobr> | <nobr>`"2023-07-07 23:59:59"`</nobr> |
114-
| <nobr>`"=today"`</nobr> | Alias of `"today"`. | <nobr>`"2023-07-07 00:00:00"`</nobr> | <nobr>`"2023-07-07 23:59:59"`</nobr> |
115-
| <nobr>`"yesterday"`</nobr> | Returns the date range from yesterday. | <nobr>`"2023-07-06 00:00:00"`</nobr> | <nobr>`"2023-07-06 23:59:59"`</nobr> |
116-
| <nobr>`"=yesterday"`</nobr> | Alias of `"yesterday"` | <nobr>`"2023-07-06 00:00:00"`</nobr> | <nobr>`"2023-07-06 23:59:59"`</nobr> |
117-
| <nobr>`"this-month"`</nobr> | Date range from first day to last day this month. | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-31 23:59:59"`</nobr> |
118-
| <nobr>`"=this-month"`</nobr> | Alias of `"this-month"` | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-31 23:59:59"`</nobr> |
119-
| <nobr>`"2023-07-01"`</nobr> | Exactly the given date. | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-01 23:59:59"`</nobr> |
120-
| <nobr>`"=2023-07-01"`</nobr> | Alias of `"2023-07-01"` | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-01 23:59:59"`</nobr> |
109+
| Given format | Description | From `('Y-m-d H:i:s')` | To `('Y-m-d H:i:s')` |
110+
|------------------------------|----------------------------------------------------------------------------------------|--------------------------------------|--------------------------------------|
111+
| <nobr>`"next-hour"`</nobr> | Returns the date range from the next hour. Alias of `"2023-07-07 13"`. | <nobr>`"2023-07-07 13:00:00"`</nobr> | <nobr>`"2023-07-07 13:59:59"`</nobr> |
112+
| <nobr>`"=next-hour"`</nobr> | Alias of `"next-hour"`. | <nobr>`"2023-07-07 13:00:00"`</nobr> | <nobr>`"2023-07-07 13:59:59"`</nobr> |
113+
| <nobr>`"this-hour"`</nobr> | Returns the date range from current hour. Alias of `"2023-07-07 12"`. | <nobr>`"2023-07-07 12:00:00"`</nobr> | <nobr>`"2023-07-07 12:59:59"`</nobr> |
114+
| <nobr>`"=this-hour"`</nobr> | Alias of `"this-hour"`. | <nobr>`"2023-07-07 12:00:00"`</nobr> | <nobr>`"2023-07-07 12:59:59"`</nobr> |
115+
| <nobr>`"last-hour"`</nobr> | Returns the date range from the last hour. Alias of `"2023-07-07 11"`. | <nobr>`"2023-07-07 11:00:00"`</nobr> | <nobr>`"2023-07-07 11:59:59"`</nobr> |
116+
| <nobr>`"=last-hour"`</nobr> | Alias of `"last-hour"`. | <nobr>`"2023-07-07 11:00:00"`</nobr> | <nobr>`"2023-07-07 11:59:59"`</nobr> |
117+
| <nobr>`"tomorrow"`</nobr> | Returns the date range from tomorrow. Alias of `"2023-07-08"`. | <nobr>`"2023-07-08 00:00:00"`</nobr> | <nobr>`"2023-07-08 23:59:59"`</nobr> |
118+
| <nobr>`"=tomorrow"`</nobr> | Alias of `"tomorrow"`. | <nobr>`"2023-07-08 00:00:00"`</nobr> | <nobr>`"2023-07-08 23:59:59"`</nobr> |
119+
| <nobr>`"today"`</nobr> | Returns the date range from today. Alias of `"2023-07-07"`. | <nobr>`"2023-07-07 00:00:00"`</nobr> | <nobr>`"2023-07-07 23:59:59"`</nobr> |
120+
| <nobr>`"=today"`</nobr> | Alias of `"today"`. | <nobr>`"2023-07-07 00:00:00"`</nobr> | <nobr>`"2023-07-07 23:59:59"`</nobr> |
121+
| <nobr>`"yesterday"`</nobr> | Returns the date range from yesterday. Alias of `"2023-07-06"`. | <nobr>`"2023-07-06 00:00:00"`</nobr> | <nobr>`"2023-07-06 23:59:59"`</nobr> |
122+
| <nobr>`"=yesterday"`</nobr> | Alias of `"yesterday"` | <nobr>`"2023-07-06 00:00:00"`</nobr> | <nobr>`"2023-07-06 23:59:59"`</nobr> |
123+
| <nobr>`"this-month"`</nobr> | Date range from first day to last day this month. Alias of `"2023-07-01\|2023-07-31"`. | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-31 23:59:59"`</nobr> |
124+
| <nobr>`"=this-month"`</nobr> | Alias of `"this-month"` | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-31 23:59:59"`</nobr> |
125+
| <nobr>`"2023-07-01"`</nobr> | Exactly the given date. | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-01 23:59:59"`</nobr> |
126+
| <nobr>`"=2023-07-01"`</nobr> | Alias of `"2023-07-01"` | <nobr>`"2023-07-01 00:00:00"`</nobr> | <nobr>`"2023-07-01 23:59:59"`</nobr> |
121127
122128
#### Time is greater than parser (`>from`)
123129
@@ -243,7 +249,7 @@ Given date time range: "2023-07-01" (America/New_York > Europe/Berlin)
243249
| Timezone (output) | Europe/Berlin |
244250
+----------------------------------------------------------+------------------+
245251
246-
Parsed from given input string (duration: 86399 seconds):
252+
Parsed from given input string (duration: 86400 seconds):
247253
248254
+------+-------------+---------------------+---------------------+
249255
| Type | Format | UTC | America/New York |
@@ -252,7 +258,7 @@ Parsed from given input string (duration: 86399 seconds):
252258
| To | Y-m-d H:i:s | 2023-07-02 03:59:59 | 2023-07-01 23:59:59 |
253259
+------+-------------+---------------------+---------------------+
254260
255-
Parsed output:
261+
Parsed output (duration: 86400 seconds):
256262
257263
+------+-------------+---------------------+---------------------+
258264
| Type | Format | UTC | Europe/Berlin |

0 commit comments

Comments
 (0)