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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -