Java tutorial
//package com.java2s; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.LocalTime; import java.util.TimeZone; public class Main { public static LocalTime getCurrentTime() { return new DateTime(DateTimeZone.forTimeZone(TimeZone.getDefault())).toLocalTime(); } }