final public static String printDelta(long delta)
{
 long mdelta=delta/60000L; // delta in minutes

 if(mdelta>60*24*7*4*12*2) return (mdelta/60/24/365)+"Y";
   else
 if(mdelta>60*24*7*12) return (mdelta/60/24/30)+"M";
   else
 if(mdelta>60*24*5*7) return (mdelta/60/24/7)+"w";
   else
 if(mdelta>60*72) return (mdelta/60/24)+"d";
   else
 if(mdelta>200) return (mdelta/60)+"h";
   else
 if(delta<60000) return (delta/1000)+"s";
   else
 return mdelta+"m";
}