Example usage for org.joda.time DateTimeUtils getZone

List of usage examples for org.joda.time DateTimeUtils getZone

Introduction

In this page you can find the example usage for org.joda.time DateTimeUtils getZone.

Prototype

public static final DateTimeZone getZone(DateTimeZone zone) 

Source Link

Document

Gets the zone handling null.

Usage

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();
}