public class Time extends Object
Modifier and Type | Field and Description |
---|---|
static long |
APR_MSEC_PER_USEC
number of milliseconds per microsecond
|
static long |
APR_USEC_PER_SEC
number of microseconds per second
|
Constructor and Description |
---|
Time() |
Modifier and Type | Method and Description |
---|---|
static String |
ctime(long t)
Formats dates in the ctime() format
in an efficient manner.
|
static long |
msec(long t) |
static long |
now()
number of microseconds since 00:00:00 January 1, 1970 UTC
|
static String |
rfc822(long t)
Formats dates in the RFC822
format in an efficient manner.
|
static long |
sec(long t) |
static void |
sleep(long t)
Sleep for the specified number of micro-seconds.
|
public static final long APR_USEC_PER_SEC
public static final long APR_MSEC_PER_USEC
public static long sec(long t)
t
- The timepublic static long msec(long t)
t
- The timepublic static long now()
public static String rfc822(long t)
t
- the time to convertpublic static String ctime(long t)
t
- the time to convertpublic static void sleep(long t)
t
- desired amount of time to sleep.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.