lib/sup/util.rb in sup-0.0.1 vs lib/sup/util.rb in sup-0.0.2
- old
+ new
@@ -214,13 +214,13 @@
else
"in " + text
end
end
- TO_NICE_S_MAX_LEN = 11 # e.g. "Jul 31 2005"
+ TO_NICE_S_MAX_LEN = 9 # e.g. "Yest.10am"
def to_nice_s from=Time.now
if year != from.year
- strftime "%b %e %Y"
+ strftime "%b %Y"
elsif month != from.month
strftime "%b %e"
else
if is_the_same_day? from
strftime("%l:%M%P")