Here you can find the source of GetCurrentTime_UTCSeconds()
public static int GetCurrentTime_UTCSeconds()
//package com.java2s; import java.util.Calendar; public class Main { public static int GetCurrentTime_UTCSeconds() { Calendar c = Calendar.getInstance(); int seconds = c.get(Calendar.SECOND); return seconds; }/*from ww w . j a v a2 s. c om*/ }