A voir également:
- Java et timestamp
- Waptrick java football - Télécharger - Jeux vidéo
- Java apk - Télécharger - Langages
- Jeux java itel football - Télécharger - Jeux vidéo
- Jeux java itel 5360 ✓ - Forum Mobile
- Java jre - Télécharger - Langages
1 réponse
Utilisateur anonyme
7 avril 2007 à 07:14
7 avril 2007 à 07:14
import java.text.SimpleDateFormat; import java.util.Date; /** * Created on 07-avr.-07 * * @author: HackTrack */ public class DateFormatter { public static void main(String[] args) { double timeMillis = 1175254023.455; Date d = new Date((long)timeMillis); SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd HH:mm:ss"); System.out.println(formatter.format(d)); } }
;-)
HackTrack