This is a wrapper for the GregorianCalendar and TimeZone classes, with its Java source code.
From the demo (in french because I used my default locale):
From the demo (in french because I used my default locale):
Full: mardi 29 novembre 2016 20 h 03 CET
Long: 29 novembre 2016 20:03:05 CET
Medium: 29 nov. 2016 20:03:05
Short: 29/11/16 20:03
Only date: 29/11/16
TimeZone: Europe/Paris (+1 h, use DST=true)
-1 week: 22/11/16 20:03:05
+2 days: 24/11/16 20:03:05
+27 hours and 65 minutes: 26/11/16 00:08:05
Difference between "1 janv. 2016 00:00:00.0" and "26 nov. 2016 00:08:05.364":
330 days
7920.135 hours
475208.089 minutes
28512485.364 seconds