balanceCaptionTime function

String balanceCaptionTime(
  1. DateTime t,
  2. String locale
)

The balance caption's time (S12, "Balance ยท 11:38 PM"): the time alone when it is today, date and time otherwise.

Implementation

String balanceCaptionTime(DateTime t, String locale) =>
    DateUtils.isSameDay(t, balanceCaptionNow())
    ? DateFormat.jm(locale).format(t)
    : walletCompactTimeFormat(locale).format(t);