@ApiStatus.Internal
public final class DateUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
getCurrentDateTime()
Get the current date and time as ISO UTC
|
static java.util.Date |
getDateTime(java.lang.String timestamp)
Get date
|
static java.lang.String |
getTimestamp(java.util.Date date)
Get date formatted as expected by Sentry.
|
static java.lang.String |
getTimestampIsoFormat(java.util.Date date)
Get date formatted as expected by Sentry.
|
public static java.lang.String getTimestampIsoFormat(java.util.Date date)
date
- the current date with local timezonepublic static java.util.Date getCurrentDateTime()
public static java.util.Date getDateTime(java.lang.String timestamp) throws java.lang.IllegalArgumentException
timestamp
- already UTC formatjava.lang.IllegalArgumentException
public static java.lang.String getTimestamp(java.util.Date date)
date
- already UTC format