Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert system.currenttimemillis to string kotlin

Long currentTime = System.currentTimeMillis();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("hh:mm:ss");
Date date = new Date(currentTime);
String time = simpleDateFormat.format(date);
Log.d(TAG, "onCreate: " + time);
 
PREVIOUS NEXT
Tagged: #convert #string #kotlin
ADD COMMENT
Topic
Name
4+2 =