JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added today_ymd()
authorjason <jason@lappy.(none)>
Fri, 11 Apr 2008 22:48:20 +0000 (18:48 -0400)
committerjason <jason@lappy.(none)>
Fri, 11 Apr 2008 22:48:20 +0000 (18:48 -0400)
misc.php

index 5678b67..e604e61 100644 (file)
--- a/misc.php
+++ b/misc.php
@@ -33,6 +33,10 @@ function this_month() {
        return ereg_replace('^0', '', strftime('%m'));
 }
 
+# return today's date in yyyy-mm-dd format
+function today_ymd() {
+       return strftime('%Y-%m-%d');
+}
 
 # php4 is broken, in that you cannot set a default value for a parameter that
 # is passed by reference. So, this is set up to use the following screwy