| java.lang.Object org.apache.tomcat.jni.Time
Time | public class Time (Code) | | Time
author: Mladen Turk version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
native public static String | ctime(long t) Formats dates in the ctime() format
in an efficient manner. | public static long | msec(long t) | native public static long | now() | native public static String | rfc822(long t) Formats dates in the RFC822
format in an efficient manner. | public static long | sec(long t) | native public static void | sleep(long t) Sleep for the specified number of micro-seconds. |
APR_MSEC_PER_USEC | final public static long APR_MSEC_PER_USEC(Code) | | number of miliseconds per microsecond
|
APR_USEC_PER_SEC | final public static long APR_USEC_PER_SEC(Code) | | number of microseconds per second
|
ctime | native public static String ctime(long t)(Code) | | 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 |
msec | public static long msec(long t)(Code) | | apr_time_t as a msec |
now | native public static long now()(Code) | | number of microseconds since 00:00:00 january 1, 1970 UTC
the current time |
rfc822 | native public static String rfc822(long t)(Code) | | Formats dates in the RFC822
format in an efficient manner.
Parameters: t - the time to convert |
sec | public static long sec(long t)(Code) | | apr_time_t as a second |
sleep | native public static void sleep(long t)(Code) | | 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. |
|
|