public final class LoggingTimestampConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
convertDatetimeStringToUTCDate(java.lang.String utcString)
Converts a datetime string of format yyyyMMdd-HHmmss (UTC timezone)
into a Date object.
|
static long |
convertDatetimeStringToUTCLoggingTimestamp(java.lang.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 java.lang.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 java.lang.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.
|
public static final java.lang.String convertLoggingTimestampToUTCString(long loggingTimestamp)
loggingTimestamp
- The timestamp to be converted in nanoseconds.public static final java.lang.String convertLoggingTimestampLocalTimeZoneString(long loggingTimestamp)
loggingTimestamp
- The timestamp to be converted.public static final long convertDatetimeStringToUTCLoggingTimestamp(java.lang.String utcString) throws java.text.ParseException
utcString
- The string to be converted.java.text.ParseException
- If the specified string cannot be parsed.public static final java.util.Date convertDatetimeStringToUTCDate(java.lang.String utcString) throws java.text.ParseException
utcString
- The string to be converted.java.text.ParseException
- If the specified string cannot be parsed.Copyright 2017 Kieker Project, http://kieker-monitoring.net