Tom Lint 92e29ba3dd Fixed compiler errors
Regenerated JavaDoc
Updated whitespace usage
Added LWJGL libraries and binaries
2013-10-15 12:34:51 +02:00

1057 lines
50 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="nl">
<head>
<!-- Generated by javadoc (version 1.7.0_40) on Tue Oct 15 12:25:31 CEST 2013 -->
<title>TimeSpan</title>
<meta name="date" content="2013-10-15">
<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="TimeSpan";
}
//-->
</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="class-use/TimeSpan.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../System/SystemException.html" title="class in System"><span class="strong">Prev Class</span></a></li>
<li><a href="../System/UnauthorizedAccessException.html" title="class in System"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?System/TimeSpan.html" target="_top">Frames</a></li>
<li><a href="TimeSpan.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">System</div>
<h2 title="Class TimeSpan" class="title">Class TimeSpan</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>System.TimeSpan</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../System/IComparable.html" title="interface in System">IComparable</a>&lt;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&gt;, <a href="../System/IEquatable.html" title="interface in System">IEquatable</a>&lt;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&gt;</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">TimeSpan</span>
extends java.lang.Object
implements <a href="../System/IComparable.html" title="interface in System">IComparable</a>&lt;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&gt;, <a href="../System/IEquatable.html" title="interface in System">IEquatable</a>&lt;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&gt;</pre>
<div class="block">Represents a time interval.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd>Halofreak1990</dd></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>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#MaxValue">MaxValue</a></strong></code>
<div class="block">Represents the maximum TimeSpan value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#MinValue">MinValue</a></strong></code>
<div class="block">Represents the minimum TimeSpan value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#TicksPerDay">TicksPerDay</a></strong></code>
<div class="block">Represents the number of ticks in 1 day.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#TicksPerHour">TicksPerHour</a></strong></code>
<div class="block">Represents the number of ticks in 1 hour.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#TicksPerMillisecond">TicksPerMillisecond</a></strong></code>
<div class="block">Represents the number of ticks in 1 millisecond.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#TicksPerMinute">TicksPerMinute</a></strong></code>
<div class="block">Represents the number of ticks in 1 minute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#TicksPerSecond">TicksPerSecond</a></strong></code>
<div class="block">Represents the number of ticks in 1 second.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Zero">Zero</a></strong></code>
<div class="block">Represents the zero TimeSpan value.</div>
</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="../System/TimeSpan.html#TimeSpan(int, int, int)">TimeSpan</a></strong>(int&nbsp;hours,
int&nbsp;minutes,
int&nbsp;seconds)</code>
<div class="block">Initializes a new TimeSpan to a specified number of hours, minutes, and seconds.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../System/TimeSpan.html#TimeSpan(int, int, int, int)">TimeSpan</a></strong>(int&nbsp;days,
int&nbsp;hours,
int&nbsp;minutes,
int&nbsp;seconds)</code>
<div class="block">Initializes a new TimeSpan to a specified number of days, hours, minutes, and seconds.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../System/TimeSpan.html#TimeSpan(int, int, int, int, int)">TimeSpan</a></strong>(int&nbsp;days,
int&nbsp;hours,
int&nbsp;minutes,
int&nbsp;seconds,
int&nbsp;milliseconds)</code>
<div class="block">Initializes a new TimeSpan to a specified number of days, hours, minutes, seconds, and milliseconds.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../System/TimeSpan.html#TimeSpan(long)">TimeSpan</a></strong>(long&nbsp;ticks)</code>
<div class="block">Initializes a new TimeSpan to the specified number of ticks.</div>
</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><a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Add(System.TimeSpan)">Add</a></strong>(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;ts)</code>
<div class="block">Adds the specified TimeSpan to this instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Compare(System.TimeSpan, System.TimeSpan)">Compare</a></strong>(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t1,
<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t2)</code>
<div class="block">Compares two TimeSpan values and returns an integer that indicates their relationship.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#CompareTo(System.TimeSpan)">CompareTo</a></strong>(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;value)</code>
<div class="block">Compares this instance to a specified TimeSpan object and returns an indication of their relative values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Duration()">Duration</a></strong>()</code>
<div class="block">Returns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object&nbsp;value)</code>
<div class="block">Returns a value indicating whether this instance is equal to a specified object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Equals(System.TimeSpan)">Equals</a></strong>(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;obj)</code>
<div class="block">Returns a value indicating whether this instance is equal to a specified TimeSpan object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Equals(System.TimeSpan, System.TimeSpan)">Equals</a></strong>(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t1,
<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t2)</code>
<div class="block">Returns a value indicating whether two specified instances of TimeSpan are equal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#FromDays(double)">FromDays</a></strong>(double&nbsp;value)</code>
<div class="block">Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#FromHours(double)">FromHours</a></strong>(double&nbsp;value)</code>
<div class="block">Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#FromMilliseconds(double)">FromMilliseconds</a></strong>(double&nbsp;value)</code>
<div class="block">Returns a TimeSpan that represents a specified number of milliseconds.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#FromMinutes(double)">FromMinutes</a></strong>(double&nbsp;value)</code>
<div class="block">Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#FromSeconds(double)">FromSeconds</a></strong>(double&nbsp;value)</code>
<div class="block">Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#FromTicks(long)">FromTicks</a></strong>(long&nbsp;value)</code>
<div class="block">Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getDays()">getDays</a></strong>()</code>
<div class="block">Gets the number of whole days represented by the current TimeSpan structure.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getHours()">getHours</a></strong>()</code>
<div class="block">Gets the number of whole hours represented by the current TimeSpan structure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getMilliseconds()">getMilliseconds</a></strong>()</code>
<div class="block">Gets the number of whole milliseconds represented by the current TimeSpan structure.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getMinutes()">getMinutes</a></strong>()</code>
<div class="block">Gets the number of whole minutes represented by the current TimeSpan structure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getSeconds()">getSeconds</a></strong>()</code>
<div class="block">Gets the number of whole seconds represented by the current TimeSpan structure.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getTicks()">getTicks</a></strong>()</code>
<div class="block">Gets the number of ticks that represent the value of the current TimeSpan structure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getTotalDays()">getTotalDays</a></strong>()</code>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional days.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getTotalHours()">getTotalHours</a></strong>()</code>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional hours.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getTotalMilliseconds()">getTotalMilliseconds</a></strong>()</code>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getTotalMinutes()">getTotalMinutes</a></strong>()</code>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#getTotalSeconds()">getTotalSeconds</a></strong>()</code>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional seconds.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#hashCode()">hashCode</a></strong>()</code>
<div class="block">Returns a hash code for this instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Negate()">Negate</a></strong>()</code>
<div class="block">Returns a TimeSpan whose value is the negated value of this instance.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Parse(java.lang.String)">Parse</a></strong>(java.lang.String&nbsp;s)</code>
<div class="block">Constructs a new TimeSpan object from a time interval specified in a string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../System/TimeSpan.html" title="class in System">TimeSpan</a></code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#Subtract(System.TimeSpan)">Subtract</a></strong>(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;ts)</code>
<div class="block">Subtracts the specified TimeSpan from this instance.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#toString()">toString</a></strong>()</code>
<div class="block">Returns the string representation of the value of this instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../System/TimeSpan.html#TryParse(java.lang.String, System.TimeSpan)">TryParse</a></strong>(java.lang.String&nbsp;s,
<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;result)</code>
<div class="block">Constructs a new TimeSpan object from a time interval specified in a string.</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.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</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="TicksPerMillisecond">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TicksPerMillisecond</h4>
<pre>public static final&nbsp;long TicksPerMillisecond</pre>
<div class="block">Represents the number of ticks in 1 millisecond. This field is constant.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#System.TimeSpan.TicksPerMillisecond">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="TicksPerSecond">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TicksPerSecond</h4>
<pre>public static final&nbsp;long TicksPerSecond</pre>
<div class="block">Represents the number of ticks in 1 second.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#System.TimeSpan.TicksPerSecond">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="TicksPerMinute">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TicksPerMinute</h4>
<pre>public static final&nbsp;long TicksPerMinute</pre>
<div class="block">Represents the number of ticks in 1 minute. This field is constant.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#System.TimeSpan.TicksPerMinute">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="TicksPerHour">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TicksPerHour</h4>
<pre>public static final&nbsp;long TicksPerHour</pre>
<div class="block">Represents the number of ticks in 1 hour. This field is constant.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#System.TimeSpan.TicksPerHour">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="TicksPerDay">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TicksPerDay</h4>
<pre>public static final&nbsp;long TicksPerDay</pre>
<div class="block">Represents the number of ticks in 1 day. This field is constant.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#System.TimeSpan.TicksPerDay">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="Zero">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Zero</h4>
<pre>public static final&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a> Zero</pre>
<div class="block">Represents the zero TimeSpan value. This field is read-only.</div>
</li>
</ul>
<a name="MaxValue">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MaxValue</h4>
<pre>public static final&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a> MaxValue</pre>
<div class="block">Represents the maximum TimeSpan value. This field is read-only.</div>
</li>
</ul>
<a name="MinValue">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MinValue</h4>
<pre>public static final&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a> MinValue</pre>
<div class="block">Represents the minimum TimeSpan value. This field is read-only.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="TimeSpan(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TimeSpan</h4>
<pre>public&nbsp;TimeSpan(long&nbsp;ticks)</pre>
<div class="block">Initializes a new TimeSpan to the specified number of ticks.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ticks</code> - A time period expressed in 100-nanosecond units.</dd></dl>
</li>
</ul>
<a name="TimeSpan(int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TimeSpan</h4>
<pre>public&nbsp;TimeSpan(int&nbsp;hours,
int&nbsp;minutes,
int&nbsp;seconds)</pre>
<div class="block">Initializes a new TimeSpan to a specified number of hours, minutes, and seconds.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hours</code> - Number of hours.</dd><dd><code>minutes</code> - Number of minutes.</dd><dd><code>seconds</code> - Number of seconds.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentOutOfRangeException.html" title="class in System">ArgumentOutOfRangeException</a></code> - The parameters specify a TimeSpan value less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="TimeSpan(int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TimeSpan</h4>
<pre>public&nbsp;TimeSpan(int&nbsp;days,
int&nbsp;hours,
int&nbsp;minutes,
int&nbsp;seconds)</pre>
<div class="block">Initializes a new TimeSpan to a specified number of days, hours, minutes, and seconds.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>days</code> - Number of days.</dd><dd><code>hours</code> - Number of hours.</dd><dd><code>minutes</code> - Number of minutes.</dd><dd><code>seconds</code> - Number of seconds.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentOutOfRangeException.html" title="class in System">ArgumentOutOfRangeException</a></code> - The parameters specify a TimeSpan value less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="TimeSpan(int, int, int, int, int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TimeSpan</h4>
<pre>public&nbsp;TimeSpan(int&nbsp;days,
int&nbsp;hours,
int&nbsp;minutes,
int&nbsp;seconds,
int&nbsp;milliseconds)</pre>
<div class="block">Initializes a new TimeSpan to a specified number of days, hours, minutes, seconds, and milliseconds.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>days</code> - Number of days.</dd><dd><code>hours</code> - Number of hours.</dd><dd><code>minutes</code> - Number of minutes.</dd><dd><code>seconds</code> - Number of seconds.</dd><dd><code>milliseconds</code> - Number of milliseconds.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentOutOfRangeException.html" title="class in System">ArgumentOutOfRangeException</a></code> - The parameters specify a TimeSpan value less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getDays()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDays</h4>
<pre>public&nbsp;int&nbsp;getDays()</pre>
<div class="block">Gets the number of whole days represented by the current TimeSpan structure.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The day component of this instance. The return value can be positive or negative.</dd></dl>
</li>
</ul>
<a name="getHours()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHours</h4>
<pre>public&nbsp;int&nbsp;getHours()</pre>
<div class="block">Gets the number of whole hours represented by the current TimeSpan structure.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The hour component of the current TimeSpan structure. The return value ranges from -23 through 23.</dd></dl>
</li>
</ul>
<a name="getMilliseconds()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMilliseconds</h4>
<pre>public&nbsp;int&nbsp;getMilliseconds()</pre>
<div class="block">Gets the number of whole milliseconds represented by the current TimeSpan structure.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The millisecond component of the current TimeSpan structure. The return value ranges from -999 through 999.</dd></dl>
</li>
</ul>
<a name="getMinutes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinutes</h4>
<pre>public&nbsp;int&nbsp;getMinutes()</pre>
<div class="block">Gets the number of whole minutes represented by the current TimeSpan structure.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The minute component of the current TimeSpan structure. The return value ranges from -59 through 59.</dd></dl>
</li>
</ul>
<a name="getSeconds()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeconds</h4>
<pre>public&nbsp;int&nbsp;getSeconds()</pre>
<div class="block">Gets the number of whole seconds represented by the current TimeSpan structure.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The second component of the current TimeSpan structure. The return value ranges from -59 through 59.</dd></dl>
</li>
</ul>
<a name="getTicks()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTicks</h4>
<pre>public&nbsp;long&nbsp;getTicks()</pre>
<div class="block">Gets the number of ticks that represent the value of the current TimeSpan structure.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The number of ticks contained in this instance.</dd></dl>
</li>
</ul>
<a name="getTotalDays()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalDays</h4>
<pre>public&nbsp;double&nbsp;getTotalDays()</pre>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional days.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The total number of days represented by this instance.</dd></dl>
</li>
</ul>
<a name="getTotalHours()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalHours</h4>
<pre>public&nbsp;double&nbsp;getTotalHours()</pre>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional hours.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The total number of hours represented by this instance.</dd></dl>
</li>
</ul>
<a name="getTotalMilliseconds()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalMilliseconds</h4>
<pre>public&nbsp;double&nbsp;getTotalMilliseconds()</pre>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The total number of milliseconds represented by this instance.</dd></dl>
</li>
</ul>
<a name="getTotalMinutes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalMinutes</h4>
<pre>public&nbsp;double&nbsp;getTotalMinutes()</pre>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The total number of minutes represented by this instance.</dd></dl>
</li>
</ul>
<a name="getTotalSeconds()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalSeconds</h4>
<pre>public&nbsp;double&nbsp;getTotalSeconds()</pre>
<div class="block">Gets the value of the current TimeSpan structure expressed in whole and fractional seconds.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The total number of seconds represented by this instance.</dd></dl>
</li>
</ul>
<a name="Add(System.TimeSpan)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Add</h4>
<pre>public&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;Add(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;ts)</pre>
<div class="block">Adds the specified TimeSpan to this instance.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ts</code> - A TimeSpan.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan that represents the value of this instance plus the value of ts.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - The resulting TimeSpan is less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="Compare(System.TimeSpan, System.TimeSpan)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Compare</h4>
<pre>public static&nbsp;int&nbsp;Compare(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t1,
<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t2)</pre>
<div class="block">Compares two TimeSpan values and returns an integer that indicates their relationship.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t1</code> - A TimeSpan.</dd><dd><code>t2</code> - A TimeSpan.</dd>
<dt><span class="strong">Returns:</span></dt><dd>Value Condition -1 t1 is less than t20 t1 is equal to t21 t1 is greater than t2</dd></dl>
</li>
</ul>
<a name="CompareTo(System.TimeSpan)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CompareTo</h4>
<pre>public&nbsp;int&nbsp;CompareTo(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;value)</pre>
<div class="block">Compares this instance to a specified TimeSpan object and returns an indication of their relative values.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../System/IComparable.html#CompareTo(T)">CompareTo</a></code>&nbsp;in interface&nbsp;<code><a href="../System/IComparable.html" title="interface in System">IComparable</a>&lt;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - A TimeSpan object to compare to this instance.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A signed number indicating the relative values of this instance and value.Value Description A negative integer This instance is less than value. Zero This instance is equal to value. A positive integer This instance is greater than value.</dd></dl>
</li>
</ul>
<a name="Duration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Duration</h4>
<pre>public&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;Duration()</pre>
<div class="block">Returns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A new TimeSpan whose value is the absolute value of the current TimeSpan object.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - The value of this instance is MinValue.</dd></dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;value)</pre>
<div class="block">Returns a value indicating whether this instance is equal to a specified object.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - An object to compare with this instance.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if value is a TimeSpan object that represents the same time interval as the current TimeSpan structure; otherwise, false.</dd></dl>
</li>
</ul>
<a name="Equals(System.TimeSpan)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Equals</h4>
<pre>public&nbsp;boolean&nbsp;Equals(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;obj)</pre>
<div class="block">Returns a value indicating whether this instance is equal to a specified TimeSpan object.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../System/IEquatable.html#Equals(T)">Equals</a></code>&nbsp;in interface&nbsp;<code><a href="../System/IEquatable.html" title="interface in System">IEquatable</a>&lt;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - An TimeSpan object to compare with this instance.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if obj represents the same time interval as this instance; otherwise, false.</dd></dl>
</li>
</ul>
<a name="Equals(System.TimeSpan, System.TimeSpan)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Equals</h4>
<pre>public static&nbsp;boolean&nbsp;Equals(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t1,
<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;t2)</pre>
<div class="block">Returns a value indicating whether two specified instances of TimeSpan are equal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t1</code> - A TimeSpan.</dd><dd><code>t2</code> - A TimeSpan.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the values of t1 and t2 are equal; otherwise, false.</dd></dl>
</li>
</ul>
<a name="FromDays(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FromDays</h4>
<pre>public static&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;FromDays(double&nbsp;value)</pre>
<div class="block">Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - A number of days, accurate to the nearest millisecond.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan that represents value.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - value is equal to NaN.</dd>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - value is less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="FromHours(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FromHours</h4>
<pre>public static&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;FromHours(double&nbsp;value)</pre>
<div class="block">Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - A number of hours accurate to the nearest millisecond.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan that represents value.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - value is equal to NaN.</dd>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - value is less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="FromMilliseconds(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FromMilliseconds</h4>
<pre>public static&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;FromMilliseconds(double&nbsp;value)</pre>
<div class="block">Returns a TimeSpan that represents a specified number of milliseconds.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - A number of milliseconds.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan that represents value.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - value is equal to NaN.</dd>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - value is less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="FromMinutes(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FromMinutes</h4>
<pre>public static&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;FromMinutes(double&nbsp;value)</pre>
<div class="block">Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - A number of minutes, accurate to the nearest millisecond.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan that represents value.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - value is equal to NaN.</dd>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - value is less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="FromSeconds(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FromSeconds</h4>
<pre>public static&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;FromSeconds(double&nbsp;value)</pre>
<div class="block">Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - A number of seconds, accurate to the nearest millisecond.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan that represents value.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - value is equal to NaN.</dd>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - value is less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="FromTicks(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FromTicks</h4>
<pre>public static&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;FromTicks(long&nbsp;value)</pre>
<div class="block">Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - A number of ticks that represent a time.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan with a value of value.</dd></dl>
</li>
</ul>
<a name="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<div class="block">Returns a hash code for this instance.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>A 32-bit signed integer hash code.</dd></dl>
</li>
</ul>
<a name="Negate()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Negate</h4>
<pre>public&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;Negate()</pre>
<div class="block">Returns a TimeSpan whose value is the negated value of this instance.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The same numeric value as this instance, but with the opposite sign.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - The negated value of this instance cannot be represented by a TimeSpan; that is, the value of this instance is MinValue.</dd></dl>
</li>
</ul>
<a name="Parse(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Parse</h4>
<pre>public static&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;Parse(java.lang.String&nbsp;s)</pre>
<div class="block">Constructs a new TimeSpan object from a time interval specified in a string.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - A string that specifies a time interval.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan that corresponds to s.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/FormatException.html" title="class in System">FormatException</a></code> - s has an invalid format.</dd>
<dd><code><a href="../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - s is null.</dd>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - s represents a number less than MinValue or greater than MaxValue.-or- At least one of the days, hours, minutes, or seconds components is outside its valid range.</dd></dl>
</li>
</ul>
<a name="Subtract(System.TimeSpan)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Subtract</h4>
<pre>public&nbsp;<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;Subtract(<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;ts)</pre>
<div class="block">Subtracts the specified TimeSpan from this instance.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ts</code> - A TimeSpan.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A TimeSpan whose value is the result of the value of this instance minus the value of ts.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../System/OverflowException.html" title="class in System">OverflowException</a></code> - The return value is less than MinValue or greater than MaxValue.</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<div class="block">Returns the string representation of the value of this instance.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>A string that represents the value of this instance. The return value is of the form: [-][d.]hh:mm:ss[.ff] Items in square brackets ([ and ]) are optional, colons and periods (: and.) are literal characters; and the other items are as follows.Item Description "-" optional minus sign indicating a negative time "d" optional days "hh" hours, ranging from 0 to 23 "mm" minutes, ranging from 0 to 59 "ss" seconds, ranging from 0 to 59 "ff" optional fractional seconds, from 1 to 7 decimal digits For more information about comparing the string representation of TimeSpan and Oracle data types, see article Q324577, "System.TimeSpan Does Not Match Oracle 9i INTERVAL DAY TO SECOND Data Type," in the Microsoft Knowledge Base at http://support.microsoft.com.</dd></dl>
</li>
</ul>
<a name="TryParse(java.lang.String, System.TimeSpan)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TryParse</h4>
<pre>public static&nbsp;boolean&nbsp;TryParse(java.lang.String&nbsp;s,
<a href="../System/TimeSpan.html" title="class in System">TimeSpan</a>&nbsp;result)</pre>
<div class="block">Constructs a new TimeSpan object from a time interval specified in a string. Parameters specify the time interval and the variable where the new TimeSpan object is returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - A string that specifies a time interval.</dd><dd><code>result</code> - When this method returns, contains an object that represents the time interval specified by s, or Zero if the conversion failed. This parameter is passed uninitialized.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if s was converted successfully; otherwise, false. This operation returns false if the s parameter is null, has an invalid format,represents a time interval less than MinValue or greater than MaxValue, or has at least one days, hours, minutes, or seconds component outside its valid range.</dd></dl>
</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="class-use/TimeSpan.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../System/SystemException.html" title="class in System"><span class="strong">Prev Class</span></a></li>
<li><a href="../System/UnauthorizedAccessException.html" title="class in System"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?System/TimeSpan.html" target="_top">Frames</a></li>
<li><a href="TimeSpan.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>