1288 lines
51 KiB
HTML
1288 lines
51 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!--NewPage-->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<!-- Generated by javadoc (build 1.6.0_24) on Sun Apr 15 20:18:19 CEST 2012 -->
|
||
|
<TITLE>
|
||
|
TimeSpan
|
||
|
</TITLE>
|
||
|
|
||
|
<META NAME="date" CONTENT="2012-04-15">
|
||
|
|
||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
||
|
|
||
|
<SCRIPT type="text/javascript">
|
||
|
function windowTitle()
|
||
|
{
|
||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
parent.document.title="TimeSpan";
|
||
|
}
|
||
|
}
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<A NAME="navbar_top"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TimeSpan.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../System/SystemException.html" title="class in System"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../System/UnauthorizedAccessException.html" title="class in System"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../index.html?System/TimeSpan.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="TimeSpan.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_top"></A>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
|
||
|
<HR>
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<H2>
|
||
|
<FONT SIZE="-1">
|
||
|
System</FONT>
|
||
|
<BR>
|
||
|
Class TimeSpan</H2>
|
||
|
<PRE>
|
||
|
java.lang.Object
|
||
|
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>System.TimeSpan</B>
|
||
|
</PRE>
|
||
|
<DL>
|
||
|
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../System/IComparable.html" title="interface in System">IComparable</A><<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A>>, <A HREF="../System/IEquatable.html" title="interface in System">IEquatable</A><<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A>></DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
<DL>
|
||
|
<DT><PRE>public class <B>TimeSpan</B><DT>extends java.lang.Object<DT>implements <A HREF="../System/IComparable.html" title="interface in System">IComparable</A><<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A>>, <A HREF="../System/IEquatable.html" title="interface in System">IEquatable</A><<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A>></DL>
|
||
|
</PRE>
|
||
|
|
||
|
<P>
|
||
|
Represents a time interval.
|
||
|
<P>
|
||
|
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Author:</B></DT>
|
||
|
<DD>Halofreak1990</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<P>
|
||
|
<!-- =========== FIELD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="field_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Field Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#MaxValue">MaxValue</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the maximum TimeSpan value.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#MinValue">MinValue</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the minimum TimeSpan value.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> long</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TicksPerDay">TicksPerDay</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the number of ticks in 1 day.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> long</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TicksPerHour">TicksPerHour</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the number of ticks in 1 hour.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> long</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TicksPerMillisecond">TicksPerMillisecond</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the number of ticks in 1 millisecond.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> long</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TicksPerMinute">TicksPerMinute</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the number of ticks in 1 minute.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> long</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TicksPerSecond">TicksPerSecond</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the number of ticks in 1 second.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Zero">Zero</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Represents the zero TimeSpan value.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
|
||
|
<A NAME="constructor_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Constructor Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TimeSpan(int, int, int)">TimeSpan</A></B>(int hours,
|
||
|
int minutes,
|
||
|
int seconds)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new TimeSpan to a specified number of hours, minutes, and seconds.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TimeSpan(int, int, int, int)">TimeSpan</A></B>(int days,
|
||
|
int hours,
|
||
|
int minutes,
|
||
|
int seconds)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new TimeSpan to a specified number of days, hours, minutes, and seconds.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TimeSpan(int, int, int, int, int)">TimeSpan</A></B>(int days,
|
||
|
int hours,
|
||
|
int minutes,
|
||
|
int seconds,
|
||
|
int milliseconds)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new TimeSpan to a specified number of days, hours, minutes, seconds, and milliseconds.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TimeSpan(long)">TimeSpan</A></B>(long ticks)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new TimeSpan to the specified number of ticks.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="method_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Method Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Add(System.TimeSpan)">Add</A></B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> ts)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Adds the specified TimeSpan to this instance.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Compare(System.TimeSpan, System.TimeSpan)">Compare</A></B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t1,
|
||
|
<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t2)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Compares two TimeSpan values and returns an integer that indicates their relationship.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#CompareTo(System.TimeSpan)">CompareTo</A></B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Compares this instance to a specified TimeSpan object and returns an indication of their relative values.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Duration()">Duration</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a value indicating whether this instance is equal to a specified object.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Equals(System.TimeSpan)">Equals</A></B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> obj)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a value indicating whether this instance is equal to a specified TimeSpan object.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Equals(System.TimeSpan, System.TimeSpan)">Equals</A></B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t1,
|
||
|
<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t2)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a value indicating whether two specified instances of TimeSpan are equal.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#FromDays(double)">FromDays</A></B>(double value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#FromHours(double)">FromHours</A></B>(double value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#FromMilliseconds(double)">FromMilliseconds</A></B>(double value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a TimeSpan that represents a specified number of milliseconds.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#FromMinutes(double)">FromMinutes</A></B>(double value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#FromSeconds(double)">FromSeconds</A></B>(double value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#FromTicks(long)">FromTicks</A></B>(long value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getDays()">getDays</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the number of whole days represented by the current TimeSpan structure.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getHours()">getHours</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the number of whole hours represented by the current TimeSpan structure.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getMilliseconds()">getMilliseconds</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the number of whole milliseconds represented by the current TimeSpan structure.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getMinutes()">getMinutes</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the number of whole minutes represented by the current TimeSpan structure.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getSeconds()">getSeconds</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the number of whole seconds represented by the current TimeSpan structure.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> long</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getTicks()">getTicks</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the number of ticks that represent the value of the current TimeSpan structure.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> double</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getTotalDays()">getTotalDays</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the value of the current TimeSpan structure expressed in whole and fractional days.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> double</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getTotalHours()">getTotalHours</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the value of the current TimeSpan structure expressed in whole and fractional hours.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> double</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getTotalMilliseconds()">getTotalMilliseconds</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> double</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getTotalMinutes()">getTotalMinutes</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> double</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#getTotalSeconds()">getTotalSeconds</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the value of the current TimeSpan structure expressed in whole and fractional seconds.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#hashCode()">hashCode</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a hash code for this instance.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Negate()">Negate</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a TimeSpan whose value is the negated value of this instance.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Parse(java.lang.String)">Parse</A></B>(java.lang.String s)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Constructs a new TimeSpan object from a time interval specified in a string.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#Subtract(System.TimeSpan)">Subtract</A></B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> ts)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Subtracts the specified TimeSpan from this instance.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> java.lang.String</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#toString()">toString</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns the string representation of the value of this instance.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../System/TimeSpan.html#TryParse(java.lang.String, System.TimeSpan)">TryParse</A></B>(java.lang.String s,
|
||
|
<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> result)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Constructs a new TimeSpan object from a time interval specified in a string.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<P>
|
||
|
|
||
|
<!-- ============ FIELD DETAIL =========== -->
|
||
|
|
||
|
<A NAME="field_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Field Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="TicksPerMillisecond"><!-- --></A><H3>
|
||
|
TicksPerMillisecond</H3>
|
||
|
<PRE>
|
||
|
public final long <B>TicksPerMillisecond</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the number of ticks in 1 millisecond. This field is constant.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#System.TimeSpan.TicksPerMillisecond">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TicksPerSecond"><!-- --></A><H3>
|
||
|
TicksPerSecond</H3>
|
||
|
<PRE>
|
||
|
public final long <B>TicksPerSecond</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the number of ticks in 1 second.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#System.TimeSpan.TicksPerSecond">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TicksPerMinute"><!-- --></A><H3>
|
||
|
TicksPerMinute</H3>
|
||
|
<PRE>
|
||
|
public final long <B>TicksPerMinute</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the number of ticks in 1 minute. This field is constant.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#System.TimeSpan.TicksPerMinute">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TicksPerHour"><!-- --></A><H3>
|
||
|
TicksPerHour</H3>
|
||
|
<PRE>
|
||
|
public final long <B>TicksPerHour</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the number of ticks in 1 hour. This field is constant.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#System.TimeSpan.TicksPerHour">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TicksPerDay"><!-- --></A><H3>
|
||
|
TicksPerDay</H3>
|
||
|
<PRE>
|
||
|
public final long <B>TicksPerDay</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the number of ticks in 1 day. This field is constant.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#System.TimeSpan.TicksPerDay">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Zero"><!-- --></A><H3>
|
||
|
Zero</H3>
|
||
|
<PRE>
|
||
|
public static final <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>Zero</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the zero TimeSpan value. This field is read-only.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="MaxValue"><!-- --></A><H3>
|
||
|
MaxValue</H3>
|
||
|
<PRE>
|
||
|
public static final <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>MaxValue</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the maximum TimeSpan value. This field is read-only.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="MinValue"><!-- --></A><H3>
|
||
|
MinValue</H3>
|
||
|
<PRE>
|
||
|
public static final <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>MinValue</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Represents the minimum TimeSpan value. This field is read-only.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
|
||
|
<A NAME="constructor_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Constructor Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="TimeSpan(long)"><!-- --></A><H3>
|
||
|
TimeSpan</H3>
|
||
|
<PRE>
|
||
|
public <B>TimeSpan</B>(long ticks)</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new TimeSpan to the specified number of ticks.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>ticks</CODE> - A time period expressed in 100-nanosecond units.</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TimeSpan(int, int, int)"><!-- --></A><H3>
|
||
|
TimeSpan</H3>
|
||
|
<PRE>
|
||
|
public <B>TimeSpan</B>(int hours,
|
||
|
int minutes,
|
||
|
int seconds)</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new TimeSpan to a specified number of hours, minutes, and seconds.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>hours</CODE> - Number of hours.<DD><CODE>minutes</CODE> - Number of minutes.<DD><CODE>seconds</CODE> - Number of seconds.
|
||
|
<DT><B>Throws:</B>
|
||
|
<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.</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TimeSpan(int, int, int, int)"><!-- --></A><H3>
|
||
|
TimeSpan</H3>
|
||
|
<PRE>
|
||
|
public <B>TimeSpan</B>(int days,
|
||
|
int hours,
|
||
|
int minutes,
|
||
|
int seconds)</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new TimeSpan to a specified number of days, hours, minutes, and seconds.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>days</CODE> - Number of days.<DD><CODE>hours</CODE> - Number of hours.<DD><CODE>minutes</CODE> - Number of minutes.<DD><CODE>seconds</CODE> - Number of seconds.
|
||
|
<DT><B>Throws:</B>
|
||
|
<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.</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TimeSpan(int, int, int, int, int)"><!-- --></A><H3>
|
||
|
TimeSpan</H3>
|
||
|
<PRE>
|
||
|
public <B>TimeSpan</B>(int days,
|
||
|
int hours,
|
||
|
int minutes,
|
||
|
int seconds,
|
||
|
int milliseconds)</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new TimeSpan to a specified number of days, hours, minutes, seconds, and milliseconds.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>days</CODE> - Number of days.<DD><CODE>hours</CODE> - Number of hours.<DD><CODE>minutes</CODE> - Number of minutes.<DD><CODE>seconds</CODE> - Number of seconds.<DD><CODE>milliseconds</CODE> - Number of milliseconds.
|
||
|
<DT><B>Throws:</B>
|
||
|
<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.</DL>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
|
||
|
<A NAME="method_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Method Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="getDays()"><!-- --></A><H3>
|
||
|
getDays</H3>
|
||
|
<PRE>
|
||
|
public int <B>getDays</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the number of whole days represented by the current TimeSpan structure.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The day component of this instance. The return value can be positive or negative.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getHours()"><!-- --></A><H3>
|
||
|
getHours</H3>
|
||
|
<PRE>
|
||
|
public int <B>getHours</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the number of whole hours represented by the current TimeSpan structure.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The hour component of the current TimeSpan structure. The return value ranges from -23 through 23.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getMilliseconds()"><!-- --></A><H3>
|
||
|
getMilliseconds</H3>
|
||
|
<PRE>
|
||
|
public int <B>getMilliseconds</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the number of whole milliseconds represented by the current TimeSpan structure.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The millisecond component of the current TimeSpan structure. The return value ranges from -999 through 999.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getMinutes()"><!-- --></A><H3>
|
||
|
getMinutes</H3>
|
||
|
<PRE>
|
||
|
public int <B>getMinutes</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the number of whole minutes represented by the current TimeSpan structure.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The minute component of the current TimeSpan structure. The return value ranges from -59 through 59.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getSeconds()"><!-- --></A><H3>
|
||
|
getSeconds</H3>
|
||
|
<PRE>
|
||
|
public int <B>getSeconds</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the number of whole seconds represented by the current TimeSpan structure.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The second component of the current TimeSpan structure. The return value ranges from -59 through 59.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getTicks()"><!-- --></A><H3>
|
||
|
getTicks</H3>
|
||
|
<PRE>
|
||
|
public long <B>getTicks</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the number of ticks that represent the value of the current TimeSpan structure.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The number of ticks contained in this instance.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getTotalDays()"><!-- --></A><H3>
|
||
|
getTotalDays</H3>
|
||
|
<PRE>
|
||
|
public double <B>getTotalDays</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the value of the current TimeSpan structure expressed in whole and fractional days.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The total number of days represented by this instance.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getTotalHours()"><!-- --></A><H3>
|
||
|
getTotalHours</H3>
|
||
|
<PRE>
|
||
|
public double <B>getTotalHours</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the value of the current TimeSpan structure expressed in whole and fractional hours.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The total number of hours represented by this instance.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getTotalMilliseconds()"><!-- --></A><H3>
|
||
|
getTotalMilliseconds</H3>
|
||
|
<PRE>
|
||
|
public double <B>getTotalMilliseconds</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The total number of milliseconds represented by this instance.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getTotalMinutes()"><!-- --></A><H3>
|
||
|
getTotalMinutes</H3>
|
||
|
<PRE>
|
||
|
public double <B>getTotalMinutes</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The total number of minutes represented by this instance.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getTotalSeconds()"><!-- --></A><H3>
|
||
|
getTotalSeconds</H3>
|
||
|
<PRE>
|
||
|
public double <B>getTotalSeconds</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the value of the current TimeSpan structure expressed in whole and fractional seconds.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The total number of seconds represented by this instance.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Add(System.TimeSpan)"><!-- --></A><H3>
|
||
|
Add</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>Add</B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> ts)</PRE>
|
||
|
<DL>
|
||
|
<DD>Adds the specified TimeSpan to this instance.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>ts</CODE> - A TimeSpan.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan that represents the value of this instance plus the value of ts.
|
||
|
<DT><B>Throws:</B>
|
||
|
<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.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Compare(System.TimeSpan, System.TimeSpan)"><!-- --></A><H3>
|
||
|
Compare</H3>
|
||
|
<PRE>
|
||
|
public static int <B>Compare</B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t1,
|
||
|
<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t2)</PRE>
|
||
|
<DL>
|
||
|
<DD>Compares two TimeSpan values and returns an integer that indicates their relationship.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>t1</CODE> - A TimeSpan.<DD><CODE>t2</CODE> - A TimeSpan.
|
||
|
<DT><B>Returns:</B><DD>Value Condition -1 t1 is less than t20 t1 is equal to t21 t1 is greater than t2</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="CompareTo(System.TimeSpan)"><!-- --></A><H3>
|
||
|
CompareTo</H3>
|
||
|
<PRE>
|
||
|
public int <B>CompareTo</B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Compares this instance to a specified TimeSpan object and returns an indication of their relative values.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../System/IComparable.html#CompareTo(T)">CompareTo</A></CODE> in interface <CODE><A HREF="../System/IComparable.html" title="interface in System">IComparable</A><<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A>></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - A TimeSpan object to compare to this instance.
|
||
|
<DT><B>Returns:</B><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.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Duration()"><!-- --></A><H3>
|
||
|
Duration</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>Duration</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>A new TimeSpan whose value is the absolute value of the current TimeSpan object.
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE><A HREF="../System/OverflowException.html" title="class in System">OverflowException</A></CODE> - The value of this instance is MinValue.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
|
||
|
equals</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>equals</B>(java.lang.Object value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a value indicating whether this instance is equal to a specified object.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - An object to compare with this instance.
|
||
|
<DT><B>Returns:</B><DD>true if value is a TimeSpan object that represents the same time interval as the current TimeSpan structure; otherwise, false.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Equals(System.TimeSpan)"><!-- --></A><H3>
|
||
|
Equals</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>Equals</B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> obj)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a value indicating whether this instance is equal to a specified TimeSpan object.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../System/IEquatable.html#Equals(T)">Equals</A></CODE> in interface <CODE><A HREF="../System/IEquatable.html" title="interface in System">IEquatable</A><<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A>></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - An TimeSpan object to compare with this instance.
|
||
|
<DT><B>Returns:</B><DD>true if obj represents the same time interval as this instance; otherwise, false.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Equals(System.TimeSpan, System.TimeSpan)"><!-- --></A><H3>
|
||
|
Equals</H3>
|
||
|
<PRE>
|
||
|
public static boolean <B>Equals</B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t1,
|
||
|
<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> t2)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a value indicating whether two specified instances of TimeSpan are equal.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>t1</CODE> - A TimeSpan.<DD><CODE>t2</CODE> - A TimeSpan.
|
||
|
<DT><B>Returns:</B><DD>true if the values of t1 and t2 are equal; otherwise, false.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="FromDays(double)"><!-- --></A><H3>
|
||
|
FromDays</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>FromDays</B>(double value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - A number of days, accurate to the nearest millisecond.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan that represents value.
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE><A HREF="../System/ArgumentException.html" title="class in System">ArgumentException</A></CODE> - value is equal to NaN.
|
||
|
<DD><CODE><A HREF="../System/OverflowException.html" title="class in System">OverflowException</A></CODE> - value is less than MinValue or greater than MaxValue.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="FromHours(double)"><!-- --></A><H3>
|
||
|
FromHours</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>FromHours</B>(double value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - A number of hours accurate to the nearest millisecond.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan that represents value.
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE><A HREF="../System/ArgumentException.html" title="class in System">ArgumentException</A></CODE> - value is equal to NaN.
|
||
|
<DD><CODE><A HREF="../System/OverflowException.html" title="class in System">OverflowException</A></CODE> - value is less than MinValue or greater than MaxValue.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="FromMilliseconds(double)"><!-- --></A><H3>
|
||
|
FromMilliseconds</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>FromMilliseconds</B>(double value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a TimeSpan that represents a specified number of milliseconds.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - A number of milliseconds.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan that represents value.
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE><A HREF="../System/ArgumentException.html" title="class in System">ArgumentException</A></CODE> - value is equal to NaN.
|
||
|
<DD><CODE><A HREF="../System/OverflowException.html" title="class in System">OverflowException</A></CODE> - value is less than MinValue or greater than MaxValue.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="FromMinutes(double)"><!-- --></A><H3>
|
||
|
FromMinutes</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>FromMinutes</B>(double value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - A number of minutes, accurate to the nearest millisecond.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan that represents value.
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE><A HREF="../System/ArgumentException.html" title="class in System">ArgumentException</A></CODE> - value is equal to NaN.
|
||
|
<DD><CODE><A HREF="../System/OverflowException.html" title="class in System">OverflowException</A></CODE> - value is less than MinValue or greater than MaxValue.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="FromSeconds(double)"><!-- --></A><H3>
|
||
|
FromSeconds</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>FromSeconds</B>(double value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - A number of seconds, accurate to the nearest millisecond.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan that represents value.
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE><A HREF="../System/ArgumentException.html" title="class in System">ArgumentException</A></CODE> - value is equal to NaN.
|
||
|
<DD><CODE><A HREF="../System/OverflowException.html" title="class in System">OverflowException</A></CODE> - value is less than MinValue or greater than MaxValue.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="FromTicks(long)"><!-- --></A><H3>
|
||
|
FromTicks</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>FromTicks</B>(long value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - A number of ticks that represent a time.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan with a value of value.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="hashCode()"><!-- --></A><H3>
|
||
|
hashCode</H3>
|
||
|
<PRE>
|
||
|
public int <B>hashCode</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a hash code for this instance.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>A 32-bit signed integer hash code.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Negate()"><!-- --></A><H3>
|
||
|
Negate</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>Negate</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a TimeSpan whose value is the negated value of this instance.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The same numeric value as this instance, but with the opposite sign.
|
||
|
<DT><B>Throws:</B>
|
||
|
<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.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Parse(java.lang.String)"><!-- --></A><H3>
|
||
|
Parse</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>Parse</B>(java.lang.String s)</PRE>
|
||
|
<DL>
|
||
|
<DD>Constructs a new TimeSpan object from a time interval specified in a string.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>s</CODE> - A string that specifies a time interval.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan that corresponds to s.
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE><A HREF="../System/FormatException.html" title="class in System">FormatException</A></CODE> - s has an invalid format.
|
||
|
<DD><CODE><A HREF="../System/ArgumentNullException.html" title="class in System">ArgumentNullException</A></CODE> - s is null.
|
||
|
<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.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Subtract(System.TimeSpan)"><!-- --></A><H3>
|
||
|
Subtract</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> <B>Subtract</B>(<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> ts)</PRE>
|
||
|
<DL>
|
||
|
<DD>Subtracts the specified TimeSpan from this instance.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>ts</CODE> - A TimeSpan.
|
||
|
<DT><B>Returns:</B><DD>A TimeSpan whose value is the result of the value of this instance minus the value of ts.
|
||
|
<DT><B>Throws:</B>
|
||
|
<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.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="toString()"><!-- --></A><H3>
|
||
|
toString</H3>
|
||
|
<PRE>
|
||
|
public java.lang.String <B>toString</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns the string representation of the value of this instance.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><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.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="TryParse(java.lang.String, System.TimeSpan)"><!-- --></A><H3>
|
||
|
TryParse</H3>
|
||
|
<PRE>
|
||
|
public static boolean <B>TryParse</B>(java.lang.String s,
|
||
|
<A HREF="../System/TimeSpan.html" title="class in System">TimeSpan</A> result)</PRE>
|
||
|
<DL>
|
||
|
<DD>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.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>s</CODE> - A string that specifies a time interval.<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.
|
||
|
<DT><B>Returns:</B><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.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<A NAME="navbar_bottom"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TimeSpan.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../System/SystemException.html" title="class in System"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../System/UnauthorizedAccessException.html" title="class in System"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../index.html?System/TimeSpan.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="TimeSpan.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_bottom"></A>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
</BODY>
|
||
|
</HTML>
|