phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/class.prefs.php, 1.1.1.1.2.16


From: nomail
Subject: [Phpgroupware-cvs] api/class.prefs.php, 1.1.1.1.2.16
Date: Sat, 15 May 2004 09:38:40 +0200

Update of /api
Modified Files:
        Branch: proposal-branch
          class.prefs.php

date: 2004/05/15 07:38:40;  author: jengo;  state: Exp;  lines: +17 -1

Log Message:
Added function for displaying dates
=====================================================================
Index: api/class.prefs.php
diff -u api/class.prefs.php:1.1.1.1.2.15 api/class.prefs.php:1.1.1.1.2.16
--- api/class.prefs.php:1.1.1.1.2.15    Fri May 14 06:01:54 2004
+++ api/class.prefs.php Sat May 15 07:38:40 2004
@@ -333,4 +333,20 @@
 
                        return $timestamp;
                }
+
+               function _show_date()
+               {
+                       $args = new safe_args();
+                       $args->set('epoch',false,'any');
+                       extract($args->get(func_get_args()));
+
+                       if ($epoch)
+                       {
+                               return strftime('%x',$epoch) . date(' h:i:s 
a',$epoch);
+                       }
+                       else
+                       {
+                               return '';
+                       }
+               }
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]