You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-23Lines changed: 14 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1

2
2
3
-
Date Methods is a plugin for [Kirby 3](https://getkirby.com) that allows for advanced date and time parsing and formatting using PHP's core date objects. It offers methods for fields to handle single dates, methods for pages to handle multiple dates (ranges) and also provides helper functions to simplify working with dates and times in general.
3
+
Date Methods is a plugin for [Kirby](https://getkirby.com) that allows for advanced date and time parsing and formatting using PHP's core date objects. It offers methods for fields to handle single dates, methods for pages to handle multiple dates (ranges) and also provides helper functions to simplify working with dates and times in general.
4
4
5
5
## Overview
6
6
@@ -22,17 +22,13 @@ Converters read a date string and convert it to PHP date and time objects like `
|`rangeseparator`| The string used to separate a date range, e.g. `01.08.–05.08.24`|`–`|
378
-
|`datetimeseparator`| The string used to separate date and time, e.g. `01.08., 10:00`|`, `|
379
-
|`datetype`| The date format used. <br/>Must be one of [the predefined constants in IntlDateFormatter](https://www.php.net/manual/en/class.intldateformatter.php#intldateformatter.constants.full)|`IntlDateFormatter::LONG`|
380
-
|`timetype`| The time format used. <br/>Must be one of [the predefined constants in IntlDateFormatter](https://www.php.net/manual/en/class.intldateformatter.php#intldateformatter.constants.full)|`IntlDateFormatter::SHORT`|
381
-
367
+
| option | description | default |
368
+
| --- | --- | --- |
369
+
|`code`| The locale |`de`|
370
+
|`rangeseparator`| The string used to separate a date range, e.g. `01.08.–05.08.24`|`–`|
371
+
|`datetimeseparator`| The string used to separate date and time, e.g. `01.08., 10:00`|`, `|
372
+
|`datetype`| The date format used. <br/>Must be one of [the predefined constants in IntlDateFormatter](https://www.php.net/manual/en/class.intldateformatter.php#intldateformatter.constants.full)|`IntlDateFormatter::LONG`|
373
+
|`timetype`| The time format used. <br/>Must be one of [the predefined constants in IntlDateFormatter](https://www.php.net/manual/en/class.intldateformatter.php#intldateformatter.constants.full)|`IntlDateFormatter::SHORT`|
382
374
383
375
# License
384
376
385
-
This plugin is provided freely under the [MIT license](LICENSE.md) by [hana+nils · Büro für Gestaltung](https://hananils.de).
386
-
We create visual designs for digital and analog media.
377
+
This plugin is provided freely under the [MIT license](LICENSE.md) by [hana+nils · Büro für Gestaltung](https://hananils.de). We create visual designs for digital and analog media.
"description": "Kirby 3 plugin providing field and page methods for formatting dates and creating PHP date objects.",
4
-
"type": "kirby-plugin",
3
+
"description": "Parsing and formatting dates can be difficult, especially if you deal with multilingual content. Date Methods aims to simplify date output by providing page and field methods to handle points in time as well as date ranges accurately in your snippets and templates.",
0 commit comments