public static double call(PageContext pc , DateTime date, String strTimezone) throws ExpressionException {
return _call(pc, date, strTimezone==null?pc.getTimeZone():TimeZoneUtil.toTimeZone(strTimezone));
}
private static double _call(PageContext pc , DateTime date,TimeZone tz) {
DateTimeUtil util = DateTimeUtil.getInstance();
return util.isLeapYear(util.getYear(tz, date))?366:365;
}