Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.Locale; public class Main { public static String getStringTime() { Calendar c = Calendar.getInstance(Locale.ITALY); return c.get(Calendar.HOUR_OF_DAY) + ":" + c.get(Calendar.MINUTE) + ":" + c.get(Calendar.SECOND); } }