List of usage examples for org.joda.time DateTimeUtils getZone
public static final DateTimeZone getZone(DateTimeZone zone)
From source file:net.sourceforge.fenixedu.util.HourMinuteSecond.java
License:Open Source License
/** * Converts this object to an Interval representing the whole day. * /*from ww w.j a v a 2s.c om*/ * @param zone * the zone to get the Interval in, null means default * @return a interval over the day */ public Interval toInterval(DateTimeZone zone) { zone = DateTimeUtils.getZone(zone); return toDateMidnight(zone).toInterval(); }