From: Eugene Crosser Date: Fri, 3 Feb 2012 21:30:55 +0000 (+0400) Subject: add logging to SayWhen X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=21f7f75c93be6ee9719ca57bdaa3a7de7e8d1b23;p=WhereAmI.git add logging to SayWhen --- diff --git a/src/org/average/whereami/SayWhen.java b/src/org/average/whereami/SayWhen.java index 21196ff..154727e 100644 --- a/src/org/average/whereami/SayWhen.java +++ b/src/org/average/whereami/SayWhen.java @@ -6,6 +6,8 @@ import android.util.Log; public class SayWhen { + final String TAG = getClass().getName(); + private String s_at; private String yesterday; @@ -22,6 +24,8 @@ public class SayWhen { twhen.set(when); Boolean datechange = tnow.monthDay != twhen.monthDay; Long hoursago = (System.currentTimeMillis() - when) / 3600000; + Log.v(TAG, "datechange=" + datechange + + " hoursago=" + hoursago); if (hoursago > 24) { return s_at + twhen.format(" %H:%M %d/%m/%Y"); } else if ((tnow.hour > 4 || hoursago > 12) && datechange) {