From 1cfb6fe71a87017fb86296892f7efd0379c6d50c Mon Sep 17 00:00:00 2001 From: Christian Paminger Date: Mon, 12 Nov 2007 10:12:57 +0000 Subject: [PATCH] --- include/datum.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/datum.class.php b/include/datum.class.php index ca338ecae..02582504a 100644 --- a/include/datum.class.php +++ b/include/datum.class.php @@ -66,7 +66,7 @@ class datum /** * Liefert einen UNIX Timestamp von einem Datum im - * Format "2007-01-31" + * ISO-Format "2007-01-31" */ function mktime_fromdate($datum) { @@ -134,7 +134,7 @@ class datum { return (strlen($datum)>0?date('d.m.Y',strtotime($datum)):''); } - + /** * Prueft Uhrzeit auf Gueltigkeit (HH:MM:SS) @@ -147,7 +147,7 @@ class datum else return false; } - + /** * Prueft ob das Datum im Format dd.mm.YYYY oder YYYY-mm-dd ist * @return true wenn ok, false wenn falsches Format @@ -156,7 +156,7 @@ class datum { if(ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})$",$datum) || ereg("([0-9]{2}).([0-9]{2}).([0-9]{4})$",$datum)) return true; - else + else return false; } }