|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.tools.util.LoggingTimestampConverter
public final class LoggingTimestampConverter
This is a utility class which can be used to convert timestamps, for example by transforming a simple timestamp into a human-readable datetime string.
Method Summary | |
---|---|
static Date |
convertDatetimeStringToUTCDate(String utcString)
Converts a datetime string of format yyyyMMdd-HHmmss (UTC timezone) into a Date object. |
static long |
convertDatetimeStringToUTCLoggingTimestamp(String utcString)
Converts a datetime string of format yyyyMMdd-HHmmss (UTC timezone) into a timestamp representing the number of nanoseconds since Jan 1, 1970 UTC. |
static String |
convertLoggingTimestampLocalTimeZoneString(long loggingTimestamp)
Converts a timestamp representing the number of nanoseconds since Jan 1, 1970 UTC into a human-readable datetime string given in the local timezone. |
static String |
convertLoggingTimestampToUTCString(long loggingTimestamp)
Converts a timestamp representing the number of nanoseconds since Jan 1, 1970 UTC into a human-readable datetime string given in the UTC timezone. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final String convertLoggingTimestampToUTCString(long loggingTimestamp)
loggingTimestamp
- The timestamp to be converted in nanoseconds.
public static final String convertLoggingTimestampLocalTimeZoneString(long loggingTimestamp)
loggingTimestamp
- The timestamp to be converted.
public static final long convertDatetimeStringToUTCLoggingTimestamp(String utcString) throws ParseException
utcString
- The string to be converted.
ParseException
- If the specified string cannot be parsed.public static final Date convertDatetimeStringToUTCDate(String utcString) throws ParseException
utcString
- The string to be converted.
ParseException
- If the specified string cannot be parsed.
|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |