import java.text.DateFormat; import java.util.*; public class CheckSystemTime implements Runnable{ public void run(){ Date rightNow; Locale currentLocale; DateFormat timeFormatter; String timeOutput; rightNow = new Date(); currentLocale = new Locale("en"); timeFormatter = DateFormat.getTimeInstance(DateFormat.DEFAULT, currentLocale); timeOutput = timeFormatter.format(rightNow); System.out.println("Time: " + timeOutput); } }