Monthly Archives: May 2012
Calendar or Date difference in Java – example difference in day, hour, minute and second
Loading bar on Image loading using javascript
Java – get calendar time of other time zone
Java java.util.TimeZone class represents time zones. We can do easy calendar arithmetic across time zones in conjunction with the java.util.Calendar class. Here is an example which prints all the available time zones: String TimeZoneIds[] = TimeZone.getAvailableIDs(); for (String zoneId: TimeZoneIds) { System.out.println(zoneId); } The below method …