Package org.apache.tomcat.jni
Class Time
- java.lang.Object
- 
- org.apache.tomcat.jni.Time
 
- 
 @Deprecated public class Time extends java.lang.ObjectDeprecated.The scope of the APR/Native Library will be reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to only include those components required to provide OpenSSL integration with the NIO and NIO2 connectors.Time- Author:
- Mladen Turk
 
- 
- 
Field SummaryFields Modifier and Type Field Description static longAPR_MSEC_PER_USECDeprecated.number of milliseconds per microsecondstatic longAPR_USEC_PER_SECDeprecated.number of microseconds per second
 - 
Constructor SummaryConstructors Constructor Description Time()Deprecated.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.Stringctime(long t)Deprecated.Formats dates in the ctime() format in an efficient manner.static longmsec(long t)Deprecated.static longnow()Deprecated.number of microseconds since 00:00:00 January 1, 1970 UTCstatic java.lang.Stringrfc822(long t)Deprecated.Formats dates in the RFC822 format in an efficient manner.static longsec(long t)Deprecated.static voidsleep(long t)Deprecated.Sleep for the specified number of micro-seconds.
 
- 
- 
- 
Field Detail- 
APR_USEC_PER_SECpublic static final long APR_USEC_PER_SEC Deprecated.number of microseconds per second- See Also:
- Constant Field Values
 
 - 
APR_MSEC_PER_USECpublic static final long APR_MSEC_PER_USEC Deprecated.number of milliseconds per microsecond- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
secpublic static long sec(long t) Deprecated.- Parameters:
- t- The time
- Returns:
- apr_time_t as a second
 
 - 
msecpublic static long msec(long t) Deprecated.- Parameters:
- t- The time
- Returns:
- apr_time_t as a msec
 
 - 
nowpublic static long now() Deprecated.number of microseconds since 00:00:00 January 1, 1970 UTC- Returns:
- the current time
 
 - 
rfc822public static java.lang.String rfc822(long t) Deprecated.Formats dates in the RFC822 format in an efficient manner.- Parameters:
- t- the time to convert
- Returns:
- the formatted date
 
 - 
ctimepublic static java.lang.String ctime(long t) Deprecated.Formats dates in the ctime() format in an efficient manner. Unlike ANSI/ISO C ctime(), apr_ctime() does not include a \n at the end of the string.- Parameters:
- t- the time to convert
- Returns:
- the formatted date
 
 - 
sleeppublic static void sleep(long t) Deprecated.Sleep for the specified number of micro-seconds.
 Warning : May sleep for longer than the specified time.- Parameters:
- t- desired amount of time to sleep.
 
 
- 
 
-