+ 1
Java doubt on current time
I'm new to coding i have got following code from some books... Following code gives GMT time but i want India time to show what to alter in the code to get India time which has GMT (+5.30) https://code.sololearn.com/c4N4OQmNBCZS/?ref=app
1 Réponse
+ 1
GregorianCalendar date =
new GregorianCalendar( TimeZone.getTimeZone("Asia/Kolkata") );