In Java, time is reckoned in milliseconds (1/1000 of a second) since 00:00, January 1, 1970, Greenwich Mean Time. The count is represented as a long…

InJava,timeisreckonedinmilliseconds(1/1000ofasecond)since00:00:00,January1,1970,GreenwichMeanTime.Thecountisrepresentedasalongvalue.ThisisthevaluethatisreturnedonacalltoSystem.currentTimeMillis().WriteaJavaprogramthatcalculatesthedateandtime,tothenearestsecond,whentimerunsout.YourprogramshouldprintouttheanswerasadateandtimeinEasternStandardTime.Anyreasonableoutputformatisok.Hint:Thereisaone-­‐linesolution.ItmaybehelpfultoknowsomethingabouthowintandlongvaluesarerepresentedandtheDate,Calendar,andLongclassesintheJavaAPI.SubmityoursolutioninthefileEndOfTime.java