From ed9f5e17ae1badc235382bf4571d316108ee88a9 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Sun, 12 Jun 2011 04:55:28 -0400 Subject: [PATCH] add: now_yyyymmdd(), now_yyyymmddhhmmss() --- misc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc.php b/misc.php index cdaf2a1..528053c 100644 --- 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); -- 1.7.10.4