aboutsummaryrefslogtreecommitdiff
path: root/app/class/art2.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/art2.php')
-rw-r--r--app/class/art2.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/class/art2.php b/app/class/art2.php
index 3ba23cb..e8ae061 100644
--- a/app/class/art2.php
+++ b/app/class/art2.php
@@ -154,6 +154,10 @@ class Art2
} elseif ($option == 'hrdi') {
$now = new DateTimeImmutable(null, timezone_open("Europe/Paris"));
return hrdi($this->date->diff($now));
+ } elseif ($option == 'pdate') {
+ return $this->date->format('Y-m-d');
+ } elseif ($option == 'ptime') {
+ return $this->date->format('H:i');
}