blob: 4a1b1e70196f0a2db5131ffab23db066ff286533 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<!-- Generated by javadoc (1.8.0_152) on Tue Jan 30 10:25:33 CET 2018 -->
<title>TimeUtil</title>
<meta name="date" content="2018-01-30">
<link media="all" href="index.css" type="text/css" rel="stylesheet">
</head>
<body>
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<h2 title="Class TimeUtil" class="title">Class TimeUtil</h2>
</div>
<div class="contentContainer">
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" summary="Method Summary table, listing methods, and an explanation" cellspacing="0" cellpadding="3" border="0">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span class="tabEnd">&nbsp;</span></span></caption>
<tbody><tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static Time</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">addTimes</a></span>(AbstractTime&nbsp;time1,
AbstractTime&nbsp;time2)</code>
<div class="block">Note that:</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static Time</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">adjustTimeUnit</a></span>(java.math.BigInteger&nbsp;runtime,
TimeUnit&nbsp;timeUnit)</code>
<div class="block">This method takes a time (in value and unit) and adjusts the TimeUnit
so that the value is as small as possible, without losing precision
e.g.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static Time</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">adjustTimeUnit</a></span>(double&nbsp;runtime,
TimeUnit&nbsp;timeUnit)</code>
<div class="block">This methods adjusts the value to the first storable format
if (value &lt; 1) then scale by 1000 and check again</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static Long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">compareTime</a></span>(AbstractTime&nbsp;t1,
AbstractTime&nbsp;t2)</code>
<div class="block">compares two Times</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static AbstractTime</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">convertToTimeUnit</a></span>(AbstractTime&nbsp;time,
TimeUnit&nbsp;unit)</code>
<div class="block">Converts a Time object to the given TimeUnit.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">divideTimes</a></span>(AbstractTime&nbsp;time1,
AbstractTime&nbsp;time2)</code>
<div class="block">Divides time1 by time 2</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static List&lt;TimeUnit&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">getTimeUnitList</a></span>()</code>
<div class="block">get a list with all possible Units</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static Time</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">multiplyTime</a></span>(AbstractTime&nbsp;time,
double&nbsp;value)</code>
<div class="block">Multiplies a Time object by a factor of type long.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static AbstractTime</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">subtractTimes</a></span>(AbstractTime&nbsp;time1,
AbstractTime&nbsp;time2)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="#">timeToString</a></span>(AbstractTime&nbsp;time)</code>
<div class="block">Prints Time object nicely.</div>
</td>
</tr>
</tbody></table>
<ul class="blockList">
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</body>
</html>