<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -60,5 +60,25 @@ class AppModel extends Model {
         $ids = join(', ', $ids);
         $this-&gt;query(&quot;DELETE FROM {$this-&gt;useTable} WHERE id IN ($ids)&quot;);
     }
+    
+    /**
+     * Format a timestamp to MySQL date format
+     *
+     * @param int $time
+     * @return string
+     */
+    function timeToDate($time) {
+        return date(&quot;Y-m-d&quot;, $time);
+    }
+    
+    /**
+     * Format a timestamp to MySQL datetime format
+     *
+     * @param int $time
+     * @return string
+     */
+    function timeToDatetime($time) {
+        return date(&quot;Y-m-d H:i:s&quot;, $time);
+    }
 
 }</diff>
      <filename>app/app_model.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e552d3b9a8d88eb3936b73108970fb8b998bdd90</id>
    </parent>
  </parents>
  <author>
    <name>klevo</name>
    <email>klevo@klevo.sk</email>
  </author>
  <url>http://github.com/klevo/wildflower/commit/853920ce542235a426a12ae3ae2e697a80080143</url>
  <id>853920ce542235a426a12ae3ae2e697a80080143</id>
  <committed-date>2009-10-06T07:07:42-07:00</committed-date>
  <authored-date>2009-10-06T07:07:42-07:00</authored-date>
  <message>Added helper time/date functions to app_model</message>
  <tree>5ac8bd5519c7b6255bf50cdfa46f7adde7abd4dd</tree>
  <committer>
    <name>klevo</name>
    <email>klevo@klevo.sk</email>
  </committer>
</commit>
