Package freemarker.template.utility
Class DateUtil.TrivialCalendarFieldsToDateConverter
java.lang.Object
freemarker.template.utility.DateUtil.TrivialCalendarFieldsToDateConverter
- All Implemented Interfaces:
DateUtil.CalendarFieldsToDateConverter
- Enclosing class:
- DateUtil
public static final class DateUtil.TrivialCalendarFieldsToDateConverter
extends Object
implements DateUtil.CalendarFieldsToDateConverter
Non-thread-safe implementation that hard-references a calendar internally.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TrivialCalendarFieldsToDateConverter
public TrivialCalendarFieldsToDateConverter()
-
-
Method Details
-
calculate
public Date calculate(int era, int year, int month, int day, int hours, int minutes, int secs, int millisecs, boolean addOneDay, TimeZone tz)Description copied from interface:DateUtil.CalendarFieldsToDateConverter
Calculates theDate
from the specified calendar fields.- Specified by:
calculate
in interfaceDateUtil.CalendarFieldsToDateConverter
-