com.partnersoft.data
Class TimeLib
java.lang.Object
com.partnersoft.data.TimeLib
public class TimeLib
- extends java.lang.Object
Have you ever noticed that in most TV/movie sci-fi, time travel virtually
assures a crappy plot?
- Author:
- Paul Reavis Copyright 2004 Partner Software, Inc.
|
Method Summary |
static int |
getTick()
Returns an integer representing the percentage (0-99) of the current
second we're at. |
static int |
getTick(int maxValue)
Returns an integer between zero and the given limit, representing the
amount of time progressed within the current second. |
static java.lang.String |
humaneTimestamp()
|
static java.lang.String |
humaneTimestampWithMillis()
|
static java.lang.String |
safeTimestamp()
|
static java.lang.String |
safeTimestampWithMillis()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeLib
public TimeLib()
getTick
public static int getTick()
- Returns an integer representing the percentage (0-99) of the current
second we're at. Handy for pulsing animations etc.
getTick
public static int getTick(int maxValue)
- Returns an integer between zero and the given limit, representing the
amount of time progressed within the current second. Handy for pulsing
animations etc.
humaneTimestamp
public static java.lang.String humaneTimestamp()
safeTimestamp
public static java.lang.String safeTimestamp()
humaneTimestampWithMillis
public static java.lang.String humaneTimestampWithMillis()
safeTimestampWithMillis
public static java.lang.String safeTimestampWithMillis()