Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
883f464
)
added today_ymd()
author
jason
<jason@lappy.(none)>
Fri, 11 Apr 2008 22:48:20 +0000
(18:48 -0400)
committer
jason
<jason@lappy.(none)>
Fri, 11 Apr 2008 22:48:20 +0000
(18:48 -0400)
misc.php
patch
|
blob
|
history
diff --git
a/misc.php
b/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 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
# 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