aboutsummaryrefslogtreecommitdiff
path: root/app/class/art2.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-17 20:32:47 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-17 20:32:47 +0100
commit47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db (patch)
tree3a9c85b79822e62a80d8820210c3670e55d96e24 /app/class/art2.php
parentb4c5790ef82a4cc248d40c8403e795089d06ab08 (diff)
downloadwcms-47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db.tar.gz
wcms-47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db.zip
pdate
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');
}