Last active
May 6, 2017 05:31
-
-
Save dekzitfz/7cf84e5b485d6bc794463b07c19b2263 to your computer and use it in GitHub Desktop.
convert epoch to readable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String getReadableTime(){ | |
Date date = new Date(dt * 1000L); | |
DateFormat format = new SimpleDateFormat("MMM dd"); | |
return format.format(date); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment