⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timeutils.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#autoWarp(double)">autoWarp</A></B>(double&nbsp;warpfactor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VM Wide utility for automagically adjusting the time dialation of the time warp.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#timeNow()">timeNow</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the current time. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#timeWarp(long)">timeWarp</A></B>(long&nbsp;advanceby)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VM Wide utility for advancing the timewarp by the number of milliseconds specified. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#toAbsoluteTimeMillis(long)">toAbsoluteTimeMillis</A></B>(long&nbsp;duration)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a duration into a duration expressed in milliseconds to absolute  time realtive to the current real time. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#toAbsoluteTimeMillis(long, long)">toAbsoluteTimeMillis</A></B>(long&nbsp;duration,                     long&nbsp;fromWhen)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a duration into a duration expressed in milliseconds to absolute  time realtive to the provided absolute time. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#toRelativeTimeMillis(long)">toRelativeTimeMillis</A></B>(long&nbsp;whence)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert an absolute real time in milliseconds to a duration relative  to the current real time. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#toRelativeTimeMillis(long, long)">toRelativeTimeMillis</A></B>(long&nbsp;whence,                     long&nbsp;fromWhen)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert an absolute real time in milliseconds to a duration relative  to the current real time. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/TimeUtils.html#warpedRelativeTime(long)">warpedRelativeTime</A></B>(long&nbsp;initial)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a time a relative time adjusted by the current warping factor.  </TD></TR></TABLE>&nbsp;<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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="AMILLISECOND"><!-- --></A><H3>AMILLISECOND</H3><PRE>public static final long <B>AMILLISECOND</B></PRE><DL><DD>The number of milliseconds in a millisecond. (yes its redundant).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AMILLISECOND">Constant Field Values</A></DL></DL><HR><A NAME="ASECOND"><!-- --></A><H3>ASECOND</H3><PRE>public static final long <B>ASECOND</B></PRE><DL><DD>The number of milliseconds in a second.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.ASECOND">Constant Field Values</A></DL></DL><HR><A NAME="AMINUTE"><!-- --></A><H3>AMINUTE</H3><PRE>public static final long <B>AMINUTE</B></PRE><DL><DD>The number of milliseconds in a minute.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AMINUTE">Constant Field Values</A></DL></DL><HR><A NAME="ANHOUR"><!-- --></A><H3>ANHOUR</H3><PRE>public static final long <B>ANHOUR</B></PRE><DL><DD>The number of milliseconds in an hour.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.ANHOUR">Constant Field Values</A></DL></DL><HR><A NAME="ADAY"><!-- --></A><H3>ADAY</H3><PRE>public static final long <B>ADAY</B></PRE><DL><DD>The number of milliseconds in a day.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.ADAY">Constant Field Values</A></DL></DL><HR><A NAME="AWEEK"><!-- --></A><H3>AWEEK</H3><PRE>public static final long <B>AWEEK</B></PRE><DL><DD>The number of milliseconds in a week.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AWEEK">Constant Field Values</A></DL></DL><HR><A NAME="AFORTNIGHT"><!-- --></A><H3>AFORTNIGHT</H3><PRE>public static final long <B>AFORTNIGHT</B></PRE><DL><DD>The number of milliseconds in a fortnight (two weeks).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AFORTNIGHT">Constant Field Values</A></DL></DL><HR><A NAME="AJANUARY"><!-- --></A><H3>AJANUARY</H3><PRE>public static final long <B>AJANUARY</B></PRE><DL><DD>The number of milliseconds in the month of January.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AJANUARY">Constant Field Values</A></DL></DL><HR><A NAME="AFEBRUARY"><!-- --></A><H3>AFEBRUARY</H3><PRE>public static final long <B>AFEBRUARY</B></PRE><DL><DD>The number of milliseconds in the month of February in a non-leap year.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AFEBRUARY">Constant Field Values</A></DL></DL><HR><A NAME="ALEAPFEBRUARY"><!-- --></A><H3>ALEAPFEBRUARY</H3><PRE>public static final long <B>ALEAPFEBRUARY</B></PRE><DL><DD>The number of milliseconds in the month of February in a leap year.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.ALEAPFEBRUARY">Constant Field Values</A></DL></DL><HR><A NAME="AMARCH"><!-- --></A><H3>AMARCH</H3><PRE>public static final long <B>AMARCH</B></PRE><DL><DD>The number of milliseconds in the month of March.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AMARCH">Constant Field Values</A></DL></DL><HR><A NAME="ANAPRIL"><!-- --></A><H3>ANAPRIL</H3><PRE>public static final long <B>ANAPRIL</B></PRE><DL><DD>The number of milliseconds in the month of April.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.ANAPRIL">Constant Field Values</A></DL></DL><HR><A NAME="AMAY"><!-- --></A><H3>AMAY</H3><PRE>public static final long <B>AMAY</B></PRE><DL><DD>The number of milliseconds in the month of May.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AMAY">Constant Field Values</A></DL></DL><HR><A NAME="AJUNE"><!-- --></A><H3>AJUNE</H3><PRE>public static final long <B>AJUNE</B></PRE><DL><DD>The number of milliseconds in the month of June.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AJUNE">Constant Field Values</A></DL></DL><HR><A NAME="AJULY"><!-- --></A><H3>AJULY</H3><PRE>public static final long <B>AJULY</B></PRE><DL><DD>The number of milliseconds in the month of July.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.AJULY">Constant Field Values</A></DL></DL><HR><A NAME="ANAUGUST"><!-- --></A><H3>ANAUGUST</H3><PRE>public static final long <B>ANAUGUST</B></PRE><DL><DD>The number of milliseconds in the month of August.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.ANAUGUST">Constant Field Values</A></DL></DL><HR><A NAME="ASEPTEMBER"><!-- --></A><H3>ASEPTEMBER</H3><PRE>public static final long <B>ASEPTEMBER</B></PRE><DL><DD>The number of milliseconds in the month of September.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.util.TimeUtils.ASEPTEMBER">Constant Field Values</A></DL></DL><HR><A NAME="ANOCTOBER"><!-- --></A><H3>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -