public class Timestamps extends Object
Modifier and Type | Method and Description |
---|---|
static int |
hourOfDay(Timestamp time)
Returns the hour of day for the given timestamp in UTC timezone.
|
static int |
millisOfSecond(Timestamp time)
Returns the milliseconds within the second for the given timestamp in UTC timezone.
|
static int |
minuteOfHour(Timestamp time)
Returns the minute within the hour for the given timestamp in UTC timezone.
|
static int |
secondOfMinute(Timestamp time)
Returns the second within the minute for the given timestamp in UTC timezone.
|
static String |
toISODateString(Timestamp time)
Formats the given timestamp date according to ISO 8601 standard without time of day.
|
static String |
toISOString(Timestamp time)
Formats the given timestamp date according to ISO 8601 standard with time of day
applying UTC time zone.
|
public static final int hourOfDay(Timestamp time)
time
- The timestamp.public static final int minuteOfHour(Timestamp time)
time
- The timestamp.public static final int secondOfMinute(Timestamp time)
time
- The timestamp.public static final int millisOfSecond(Timestamp time)
time
- The timestamp.public static final String toISODateString(Timestamp time)
time
- The timestamp to be formatted.public static String toISOString(Timestamp time)
time
- The timestamp to be formatted.Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.