T
The One
Hi
I am using the Calendar object to get the value of the current hour.
here is the code:
TimeZone myTimeZone = TimeZone.getTimeZone("EST");
Calendar calendar = Calendar.getInstance(myTimeZone);
int currentHour = calendar.get(Calendar.HOUR_OF_DAY);
But here the currentHour variable gets value in between 1:12 after that
the clock is reset. Is there any specific property that I can set in
the JAva code. so I can work with 24 hours format.
Any help will be appreciated.
Thanks
Ankit Dave
I am using the Calendar object to get the value of the current hour.
here is the code:
TimeZone myTimeZone = TimeZone.getTimeZone("EST");
Calendar calendar = Calendar.getInstance(myTimeZone);
int currentHour = calendar.get(Calendar.HOUR_OF_DAY);
But here the currentHour variable gets value in between 1:12 after that
the clock is reset. Is there any specific property that I can set in
the JAva code. so I can work with 24 hours format.
Any help will be appreciated.
Thanks
Ankit Dave