JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
add: now_yyyymmdd(), now_yyyymmddhhmmss()
authorJason Woofenden <jason@jasonwoof.com>
Sun, 12 Jun 2011 08:55:28 +0000 (04:55 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sun, 12 Jun 2011 08:55:44 +0000 (04:55 -0400)
misc.php

index cdaf2a1..528053c 100644 (file)
--- a/misc.php
+++ b/misc.php
@@ -127,6 +127,14 @@ function today_ymd() {
        return strftime('%Y-%m-%d');
 }
 
+function now_yyyymmdd() {
+       return strftime('%Y-%m-%d');
+}
+
+function now_yyyymmddhhmmss() {
+       return strftime('%Y-%m-%d %H:%M:%S');
+}
+
 
 function get_text_between($text, $start_text, $end_text) {
        $start = strpos($text, $start_text);