From: Jason Woofenden Date: Sun, 12 Jun 2011 08:55:28 +0000 (-0400) Subject: add: now_yyyymmdd(), now_yyyymmddhhmmss() X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=ed9f5e17ae1badc235382bf4571d316108ee88a9 add: now_yyyymmdd(), now_yyyymmddhhmmss() --- 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);