Use GregorianCalendar for timestamp calculation.