java - Converting System.currentTimeMillis() into the current, readable time -
hey - there way use system.currenttimemillis(); have convery number basic output hh:mm in droid?
i using sample code:
toast.maketext(this, string.valueof(system.currenttimemillis()), toast.length_long).show();
that outputs current time in ms since epoch. there has got better way rather convert large number , display current time right?
simpledateformat timingformat = new simpledateformat("hh:mm"); timingformat.format(new date());
Comments
Post a Comment