X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/3080864c4cd697bd083f9fd0315f0ffababd593d..2cdc2cb95e16975c4d210f8cebcc8b04a43b79ad:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index a925a91..c5dfa23 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -42,10 +42,30 @@ class ArchiveArticle return strip_tags($this->title); } + function last() + { + return filemtime($this->page); + } + + function lastiso() + { + return date(DATE_ATOM, $this->last); + } + + function dateparts() + { + preg_match('', $this->page, $ymd); + return $ymd; + } + + function dateiso() + { + return implode('-', $this->dateparts()); + } + function date() { - if (!preg_match('', $this->page, $parts)) return; - return showdate($parts); + return showdate($this->dateparts); } function body()