<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Thu Jul 25 22:04:10 PDT 2013 -->
<title>ScheduleUtil (Mondrian OLAP Engine, version TRUNK-SNAPSHOT)</title>
<meta name="date" content="2013-07-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="ScheduleUtil (Mondrian OLAP Engine, version TRUNK-SNAPSHOT)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mondrian/util/Schedule.html" title="class in mondrian.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mondrian/util/ServiceDiscovery.html" title="class in mondrian.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mondrian/util/ScheduleUtil.html" target="_top">Frames</a></li>
<li><a href="ScheduleUtil.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">mondrian.util</div>
<h2 title="Class ScheduleUtil" class="title">Class ScheduleUtil</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>mondrian.util.ScheduleUtil</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre> class <a href="../../src-html/mondrian/util/ScheduleUtil.html#line.673">ScheduleUtil</a>
extends <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Utility functions for <a href="../../mondrian/util/Schedule.html" title="class in mondrian.util"><code>Schedule</code></a> and supporting classes.</div>
<dl><DT>&nbsp;</DT><DD><map name="umlmap221W0H0"><area shape="rect" coords="4,550,118,567" href="http://www.yworks.com" alt=""><area shape="rect" coords="265,134,381,160" href="#" alt=""><area shape="rect" coords="151,161,301,177" href="#epochDay" alt=""><area shape="rect" coords="151,177,322,193" href="#midnightTime" alt=""><area shape="rect" coords="151,194,259,210" href="#ScheduleUtil()" alt=""><area shape="rect" coords="151,211,340,227" href="#assertTrue(boolean)" alt=""><area shape="rect" coords="151,227,385,243" href="#assertTrue(boolean, java.lang.String)" alt=""><area shape="rect" coords="151,243,348,259" href="#ceiling(java.util.Calendar)" alt=""><area shape="rect" coords="151,259,485,275" href="#createCalendar(int, int, int, int, int, int)" alt=""><area shape="rect" coords="151,275,379,291" href="#createCalendar(java.util.Date)" alt=""><area shape="rect" coords="151,291,443,307" href="#createDateCalendar(int, int, int)" alt=""><area shape="rect" coords="151,307,359,323" href="#createTime(int, int, int)" alt=""><area shape="rect" coords="151,323,442,339" href="#createTimeCalendar(int, int, int)" alt=""><area shape="rect" coords="151,339,407,355" href="#createTimeCalendar(java.sql.Time)" alt=""><area shape="rect" coords="151,355,336,371" href="#floor(java.util.Calendar)" alt=""><area shape="rect" coords="151,371,358,387" href="#getTime(java.util.Calendar)" alt=""><area shape="rect" coords="151,387,345,403" href="#is0000(java.util.Calendar)" alt=""><area shape="rect" coords="151,403,342,419" href="#isTime(java.util.Calendar)" alt=""><area shape="rect" coords="151,419,324,435" href="#julianDay(java.util.Calendar)" alt=""><area shape="rect" coords="151,435,428,451" href="#lessThan(java.sql.Time, java.sql.Time, boolean)" alt=""><area shape="rect" coords="151,451,430,467" href="#lessThan(java.util.Date, java.util.Date, boolean)" alt=""><area shape="rect" coords="151,467,300,483" href="#newInternal()" alt=""><area shape="rect" coords="151,483,337,498" href="#newInternal(java.lang.String)" alt=""><area shape="rect" coords="151,498,409,514" href="#newInternal(java.lang.Throwable, java.lang.String)" alt=""><area shape="rect" coords="151,514,431,530" href="#timezoneOffset(java.util.TimeZone, java.util.Calendar)" alt=""><area shape="rect" coords="143,108,237,125" href="package-summary.html" alt=""><area shape="rect" coords="295,26,351,50" href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html" alt=""><area shape="rect" coords="286,0,354,18" href="http://java.sun.com/javase/7/docs/api/java/lang/package-summary.html" alt=""><area shape="rect" coords="9,134,83,157" href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html" alt=""><area shape="rect" coords="0,108,60,125" href="http://java.sun.com/javase/7/docs/api/java/util/package-summary.html" alt=""></map>
<map name="umlmap221W1H0"><area shape="rect" coords="-62,134,53,160" href="#" alt=""><area shape="rect" coords="-177,161,-27,177" href="#epochDay" alt=""><area shape="rect" coords="-177,177,-6,193" href="#midnightTime" alt=""><area shape="rect" coords="-177,194,-69,210" href="#ScheduleUtil()" alt=""><area shape="rect" coords="-177,211,12,227" href="#assertTrue(boolean)" alt=""><area shape="rect" coords="-177,227,57,243" href="#assertTrue(boolean, java.lang.String)" alt=""><area shape="rect" coords="-177,243,20,259" href="#ceiling(java.util.Calendar)" alt=""><area shape="rect" coords="-177,259,157,275" href="#createCalendar(int, int, int, int, int, int)" alt=""><area shape="rect" coords="-177,275,51,291" href="#createCalendar(java.util.Date)" alt=""><area shape="rect" coords="-177,291,115,307" href="#createDateCalendar(int, int, int)" alt=""><area shape="rect" coords="-177,307,31,323" href="#createTime(int, int, int)" alt=""><area shape="rect" coords="-177,323,114,339" href="#createTimeCalendar(int, int, int)" alt=""><area shape="rect" coords="-177,339,79,355" href="#createTimeCalendar(java.sql.Time)" alt=""><area shape="rect" coords="-177,355,8,371" href="#floor(java.util.Calendar)" alt=""><area shape="rect" coords="-177,371,30,387" href="#getTime(java.util.Calendar)" alt=""><area shape="rect" coords="-177,387,17,403" href="#is0000(java.util.Calendar)" alt=""><area shape="rect" coords="-177,403,14,419" href="#isTime(java.util.Calendar)" alt=""><area shape="rect" coords="-177,419,-4,435" href="#julianDay(java.util.Calendar)" alt=""><area shape="rect" coords="-177,435,100,451" href="#lessThan(java.sql.Time, java.sql.Time, boolean)" alt=""><area shape="rect" coords="-177,451,102,467" href="#lessThan(java.util.Date, java.util.Date, boolean)" alt=""><area shape="rect" coords="-177,467,-28,483" href="#newInternal()" alt=""><area shape="rect" coords="-177,483,9,498" href="#newInternal(java.lang.String)" alt=""><area shape="rect" coords="-177,498,81,514" href="#newInternal(java.lang.Throwable, java.lang.String)" alt=""><area shape="rect" coords="-177,514,103,530" href="#timezoneOffset(java.util.TimeZone, java.util.Calendar)" alt=""><area shape="rect" coords="-185,108,-91,125" href="package-summary.html" alt=""><area shape="rect" coords="-32,26,23,50" href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html" alt=""><area shape="rect" coords="-41,0,26,18" href="http://java.sun.com/javase/7/docs/api/java/lang/package-summary.html" alt=""><area shape="rect" coords="234,200,318,223" href="http://java.sun.com/javase/7/docs/api/java/lang/Throwable.html" alt=""><area shape="rect" coords="233,167,285,190" href="http://java.sun.com/javase/7/docs/api/java/lang/String.html" alt=""><area shape="rect" coords="233,134,277,157" href="http://java.sun.com/javase/7/docs/api/java/lang/Error.html" alt=""><area shape="rect" coords="225,108,293,125" href="http://java.sun.com/javase/7/docs/api/java/lang/package-summary.html" alt=""><area shape="rect" coords="233,287,276,310" href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html" alt=""><area shape="rect" coords="225,261,284,279" href="http://java.sun.com/javase/7/docs/api/java/sql/package-summary.html" alt=""><area shape="rect" coords="234,407,314,430" href="http://java.sun.com/javase/7/docs/api/java/util/TimeZone.html" alt=""><area shape="rect" coords="233,374,276,397" href="http://java.sun.com/javase/7/docs/api/java/util/Date.html" alt=""><area shape="rect" coords="225,348,285,366" href="http://java.sun.com/javase/7/docs/api/java/util/package-summary.html" alt=""></map>
<CENTER><TABLE CLASS="UmlTable" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR CLASS="UmlTableRow">
<TD CLASS="UmlTableCell"><IMG SRC="ScheduleUtilW0H0.png" WIDTH="328" HEIGHT="574" USEMAP="#umlmap221W0H0" BORDER="0"></TD>
<TD CLASS="UmlTableCell"><IMG SRC="ScheduleUtilW1H0.png" WIDTH="328" HEIGHT="574" USEMAP="#umlmap221W1H0" BORDER="0"></TD>
</TR>
</TABLE></CENTER></DD>
<!-- Powered by yFiles   http://www.yworks.com   b0ad829580107ca8ce6d82d73cd545e158b6253aa91622d... --></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>(package private) static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#epochDay">epochDay</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>(package private) static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#midnightTime">midnightTime</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#ScheduleUtil()">ScheduleUtil</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#assertTrue(boolean)">assertTrue</a></strong>(boolean&nbsp;b)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#assertTrue(boolean, java.lang.String)">assertTrue</a></strong>(boolean&nbsp;b,
                    <a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#ceiling(java.util.Calendar)">ceiling</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>
<div class="block">Returns a calendar rounded up to the next midnight, unless it is already
 midnight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#createCalendar(java.util.Date)">createCalendar</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;date)</code>
<div class="block">Creates a calendar in UTC, and initializes it to <code>date</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#createCalendar(int, int, int, int, int, int)">createCalendar</a></strong>(int&nbsp;year,
                            int&nbsp;month,
                            int&nbsp;day,
                            int&nbsp;hour,
                            int&nbsp;minute,
                            int&nbsp;second)</code>
<div class="block">Creates a calendar in UTC, and initializes it to a given year, month,
 day, hour, minute, second.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#createDateCalendar(int, int, int)">createDateCalendar</a></strong>(int&nbsp;year,
                                    int&nbsp;month,
                                    int&nbsp;dayOfMonth)</code>
<div class="block">Creates a calendar and sets it to a given year, month, date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#createTime(int, int, int)">createTime</a></strong>(int&nbsp;hour,
                    int&nbsp;minutes,
                    int&nbsp;second)</code>
<div class="block">Creates a <a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql"><code>Time</code></a></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#createTimeCalendar(int, int, int)">createTimeCalendar</a></strong>(int&nbsp;hours,
                                    int&nbsp;minutes,
                                    int&nbsp;seconds)</code>
<div class="block">Creates a calendar and sets it to a given hours, minutes, seconds.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#createTimeCalendar(java.sql.Time)">createTimeCalendar</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a>&nbsp;time)</code>
<div class="block">Creates a calendar from a time.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#floor(java.util.Calendar)">floor</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>
<div class="block">Returns a calendar rounded down to the previous midnight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#getTime(java.util.Calendar)">getTime</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>
<div class="block">Extracts the time part of a date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#is0000(java.util.Calendar)">is0000</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#isTime(java.util.Calendar)">isTime</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#julianDay(java.util.Calendar)">julianDay</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>
<div class="block">Returns the julian day number of a given date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#lessThan(java.util.Date, java.util.Date, boolean)">lessThan</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d1,
                <a href="http://java.sun.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d2,
                boolean&nbsp;strict)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#lessThan(java.sql.Time, java.sql.Time, boolean)">lessThan</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a>&nbsp;t1,
                <a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a>&nbsp;t2,
                boolean&nbsp;strict)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang">Error</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#newInternal()">newInternal</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang">Error</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#newInternal(java.lang.String)">newInternal</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://java.sun.com/javase/7/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang">Error</a></code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#newInternal(java.lang.Throwable, java.lang.String)">newInternal</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;e,
                      <a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../mondrian/util/ScheduleUtil.html#timezoneOffset(java.util.TimeZone, java.util.Calendar)">timezoneOffset</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a>&nbsp;tz,
                            <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>
<div class="block">Returns the offset from UTC in milliseconds in this timezone on a given
 date.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="epochDay">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>epochDay</h4>
<pre>static final&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a> <a href="../../src-html/mondrian/util/ScheduleUtil.html#line.674">epochDay</a></pre>
</li>
</ul>
<a name="midnightTime">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>midnightTime</h4>
<pre>static final&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a> <a href="../../src-html/mondrian/util/ScheduleUtil.html#line.675">midnightTime</a></pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="ScheduleUtil()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ScheduleUtil</h4>
<pre><a href="../../src-html/mondrian/util/ScheduleUtil.html#line.673">ScheduleUtil</a>()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="assertTrue(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertTrue</h4>
<pre>public static&nbsp;void&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.678">assertTrue</a>(boolean&nbsp;b)</pre>
</li>
</ul>
<a name="assertTrue(boolean, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertTrue</h4>
<pre>public static&nbsp;void&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.684">assertTrue</a>(boolean&nbsp;b,
              <a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</pre>
</li>
</ul>
<a name="newInternal()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInternal</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang">Error</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.690">newInternal</a>()</pre>
</li>
</ul>
<a name="newInternal(java.lang.Throwable, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInternal</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang">Error</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.694">newInternal</a>(<a href="http://java.sun.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;e,
                <a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</pre>
</li>
</ul>
<a name="newInternal(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInternal</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang">Error</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.698">newInternal</a>(<a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</pre>
</li>
</ul>
<a name="lessThan(java.sql.Time, java.sql.Time, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lessThan</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.702">lessThan</a>(<a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a>&nbsp;t1,
               <a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a>&nbsp;t2,
               boolean&nbsp;strict)</pre>
</li>
</ul>
<a name="lessThan(java.util.Date, java.util.Date, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lessThan</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.710">lessThan</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d1,
               <a href="http://java.sun.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d2,
               boolean&nbsp;strict)</pre>
</li>
</ul>
<a name="is0000(java.util.Calendar)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>is0000</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.718">is0000</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
</li>
</ul>
<a name="isTime(java.util.Calendar)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTime</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.725">isTime</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
</li>
</ul>
<a name="floor(java.util.Calendar)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>floor</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.735">floor</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
<div class="block">Returns a calendar rounded down to the previous midnight.</div>
</li>
</ul>
<a name="ceiling(java.util.Calendar)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ceiling</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.751">ceiling</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
<div class="block">Returns a calendar rounded up to the next midnight, unless it is already
 midnight.</div>
</li>
</ul>
<a name="getTime(java.util.Calendar)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTime</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.766">getTime</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
<div class="block">Extracts the time part of a date. Given a null date, returns null.</div>
</li>
</ul>
<a name="createCalendar(java.util.Date)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCalendar</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.782">createCalendar</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;date)</pre>
<div class="block">Creates a calendar in UTC, and initializes it to <code>date</code>.</div>
<dl><dt><span class="strong">Pre-condition:</span></dt>
  <dd>date != null</dd>
<dt><span class="strong">Post-condition:</span></dt>
  <dd>return != null</dd></dl>
</li>
</ul>
<a name="createCalendar(int, int, int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCalendar</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.793">createCalendar</a>(int&nbsp;year,
                      int&nbsp;month,
                      int&nbsp;day,
                      int&nbsp;hour,
                      int&nbsp;minute,
                      int&nbsp;second)</pre>
<div class="block">Creates a calendar in UTC, and initializes it to a given year, month,
 day, hour, minute, second. <b>NOTE: month is 1-based</b></div>
</li>
</ul>
<a name="createTimeCalendar(java.sql.Time)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTimeCalendar</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.820">createTimeCalendar</a>(<a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a>&nbsp;time)</pre>
<div class="block">Creates a calendar from a time. Milliseconds are ignored.</div>
<dl><dt><span class="strong">Pre-condition:</span></dt>
  <dd>time != null</dd>
<dt><span class="strong">Post-condition:</span></dt>
  <dd>return != null</dd></dl>
</li>
</ul>
<a name="createTimeCalendar(int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTimeCalendar</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.833">createTimeCalendar</a>(int&nbsp;hours,
                          int&nbsp;minutes,
                          int&nbsp;seconds)</pre>
<div class="block">Creates a calendar and sets it to a given hours, minutes, seconds.</div>
</li>
</ul>
<a name="createDateCalendar(int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createDateCalendar</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.849">createDateCalendar</a>(int&nbsp;year,
                          int&nbsp;month,
                          int&nbsp;dayOfMonth)</pre>
<div class="block">Creates a calendar and sets it to a given year, month, date.</div>
</li>
</ul>
<a name="createTime(int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTime</h4>
<pre>public static&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql">Time</a>&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.862">createTime</a>(int&nbsp;hour,
              int&nbsp;minutes,
              int&nbsp;second)</pre>
<div class="block">Creates a <a href="http://java.sun.com/javase/7/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql"><code>Time</code></a></div>
</li>
</ul>
<a name="julianDay(java.util.Calendar)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>julianDay</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.870">julianDay</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
<div class="block">Returns the julian day number of a given date. (Is there a better way
 to do this?)</div>
</li>
</ul>
<a name="timezoneOffset(java.util.TimeZone, java.util.Calendar)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>timezoneOffset</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../src-html/mondrian/util/ScheduleUtil.html#line.880">timezoneOffset</a>(<a href="http://java.sun.com/javase/7/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a>&nbsp;tz,
                 <a href="http://java.sun.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
<div class="block">Returns the offset from UTC in milliseconds in this timezone on a given
 date.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><a href="http://sourceforge.net/projects/mondrian"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=35302&type=15" width="150" height="40" border="0" alt='Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads'></a></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mondrian/util/Schedule.html" title="class in mondrian.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mondrian/util/ServiceDiscovery.html" title="class in mondrian.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mondrian/util/ScheduleUtil.html" target="_top">Frames</a></li>
<li><a href="ScheduleUtil.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
