APISonar


tk.zielony.naturaldateformat.NaturalDateFormat.DATE

> tk > zielony > naturaldateformat > NaturalDateFormat > DATE
tk APIs zielony APIs naturaldateformat APIs NaturalDateFormat APIs DATE APIs

Example 1
private String getTime(long time) {
    RelativeDateFormat relFormat = new RelativeDateFormat(getContext(), NaturalDateFormat.DATE);
    return relFormat.format(time);
  }
Example 2
public String absolute(long milis) {
    AbsoluteDateFormat absFormat = new AbsoluteDateFormat(context,
        NaturalDateFormat.DATE | NaturalDateFormat.MONTHS | NaturalDateFormat.DAYS | NaturalDateFormat.HOURS | NaturalDateFormat.MINUTES);
    return absFormat.format(milis);
  }