This program calculates the number of seconds that have elapsed since January 1, 1970, 00:00:00 GMT (also known as the Unix epoch).
public class Get_Seconds { public static void main(String[] args) { long sec = System.currentTimeMillis() / 1000l; System.out.println("Seconds since 1970 = "+sec); } }
Seconds since 1970 = 1667633186
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions