Title: SF.net SVN: mrbs:[2451] mrbs/branches/flexible_day_end/web/functions.inc
Revision
2451
Author
cimorrison
Date
2012-10-02 15:24:53 +0000 (Tue, 02 Oct 2012)

Log Message

Added an asterisk to denote "following day"

Modified Paths


Diff

Modified: mrbs/branches/flexible_day_end/web/functions.inc (2450 => 2451)


--- mrbs/branches/flexible_day_end/web/functions.inc	2012-10-02 15:09:29 UTC (rev 2450)
+++ mrbs/branches/flexible_day_end/web/functions.inc	2012-10-02 15:24:53 UTC (rev 2451)
@@ -1036,10 +1036,16 @@
 // seconds since the start of the day, $s
 function hour_min($s)
 {
+  $following_day = ($s >= (24*60*60));
   $s = $s%(24*60*60);  // in case $s is on the next day
   // Choose a day that doesn't have any DST transitions in any timezone
   $t = mktime(0, 0, $s, 1, 1, 2000);
-  return utf8_strftime(hour_min_format(), $t);  
+  $result = utf8_strftime(hour_min_format(), $t);
+  if ($following_day)
+  {
+    $result = "* " . $result;
+  }
+  return $result;
 }
 
 
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to