public class LocalDateTimeHelper extends DateHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalDateTimeHelper.Rfc1123DateTimeAdapter
Rfc1123 Date Time adapter utility class.
|
static class |
LocalDateTimeHelper.Rfc1123DateTimeDeserializer
A class to handle deserialization of DateTime objects to Rfc1123 format strings.
|
static class |
LocalDateTimeHelper.Rfc1123DateTimeSerializer
A class to handle serialization of Rfc1123 format strings to DateTime objects.
|
static class |
LocalDateTimeHelper.Rfc8601DateTimeAdapter
Rfc8601 Date Time adapter utility class.
|
static class |
LocalDateTimeHelper.Rfc8601DateTimeDeserializer
A class to handle deserialization of DateTime objects to Rfc8601(Rfc3339) format strings.
|
static class |
LocalDateTimeHelper.Rfc8601DateTimeSerializer
A class to handle serialization of Rfc8601(Rfc3339) format strings to DateTime objects.
|
static class |
LocalDateTimeHelper.UnixTimestampAdapter
UnixTimestamp adapter utility class.
|
static class |
LocalDateTimeHelper.UnixTimestampDeserializer
A class to handle deserialization of DateTime objects to Unix Timestamps.
|
static class |
LocalDateTimeHelper.UnixTimestampSerializer
A class to handle serialization of Unix Timestamps to DateTime objects.
|
DateHelper.SimpleAdapter, DateHelper.SimpleDateDeserializer, DateHelper.SimpleDateSerializer| Constructor and Description |
|---|
LocalDateTimeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static LocalDateTime |
fromRfc1123DateTime(String date)
Parse a datetime string in Rfc1123 format to a DateTime object.
|
static LocalDateTime |
fromRfc8601DateTime(String date)
Parse a datetime string in Rfc8601(Rfc3339) format to a DateTime object.
|
static LocalDateTime |
fromUnixTimestamp(Long date)
Parse a Unix Timestamp to a DateTime object.
|
static LocalDateTime |
fromUnixTimestamp(String date)
Parse a Unix Timestamp string to a DateTime object.
|
static List<Map<String,String>> |
toArrayOfMapOfRfc1123DateTime(List<Map<String,LocalDateTime>> values)
Convert a List of Map of DateTime objects to Rfc1123 formatted strings.
|
static List<Map<String,String>> |
toArrayOfMapOfRfc8601DateTime(List<Map<String,LocalDateTime>> values)
Convert a List of Map of DateTime objects to Rfc8601(Rfc3339) formatted strings.
|
static List<Map<String,String>> |
toArrayOfMapOfUnixTimestamp(List<Map<String,LocalDateTime>> values)
Convert a List of Map of DateTime objects to Unix Timestamp strings.
|
static List<Map<String,Long>> |
toArrayOfMapOfUnixTimestampLong(List<Map<String,LocalDateTime>> values)
Convert a List of Map of DateTime objects to Unix Timestamp Longs.
|
static List<String> |
toRfc1123DateTime(List<LocalDateTime> values)
Convert a List of DateTime objects to Rfc1123 formatted strings.
|
static String |
toRfc1123DateTime(LocalDateTime value)
Convert a DateTime object to a Rfc1123 formatted string.
|
static Map<String,String> |
toRfc1123DateTime(Map<String,LocalDateTime> values)
Convert a Map of DateTime objects to Rfc1123 formatted strings.
|
static List<String> |
toRfc8601DateTime(List<LocalDateTime> values)
Convert a List of DateTime objects to Rfc8601(Rfc3339) formatted strings.
|
static String |
toRfc8601DateTime(LocalDateTime value)
Convert a DateTime object to a Rfc8601(Rfc3339) formatted string.
|
static Map<String,String> |
toRfc8601DateTime(Map<String,LocalDateTime> values)
Convert a Map of DateTime objects to Rfc8601(Rfc3339) formatted strings.
|
static List<String> |
toUnixTimestamp(List<LocalDateTime> values)
Convert a List of DateTime objects to Unix Timestamp strings.
|
static String |
toUnixTimestamp(LocalDateTime value)
Convert a DateTime object to a Unix Timestamp string.
|
static Map<String,String> |
toUnixTimestamp(Map<String,LocalDateTime> values)
Convert a Map of DateTime objects to Unix Timestamp strings.
|
static List<Long> |
toUnixTimestampLong(List<LocalDateTime> values)
Convert a List of DateTime objects to Unix Timestamp Longs.
|
static Long |
toUnixTimestampLong(LocalDateTime value)
Convert a DateTime object to a Unix Timestamp Long.
|
static Map<String,Long> |
toUnixTimestampLong(Map<String,LocalDateTime> values)
Convert a Map of DateTime objects to Unix Timestamp Longs.
|
fromSimpleDate, toArrayOfMapOfSimpleDate, toSimpleDate, toSimpleDate, toSimpleDatepublic static LocalDateTime fromUnixTimestamp(Long date)
date - The Unix Timestamp.public static LocalDateTime fromUnixTimestamp(String date)
date - The Unix Timestamp as a String.public static String toUnixTimestamp(LocalDateTime value)
value - The DateTime object to convert.public static List<String> toUnixTimestamp(List<LocalDateTime> values)
values - The List of DateTime objects to convert.public static Map<String,String> toUnixTimestamp(Map<String,LocalDateTime> values)
values - The Map of DateTime objects to convert.public static List<Map<String,String>> toArrayOfMapOfUnixTimestamp(List<Map<String,LocalDateTime>> values)
values - The List of Map of DateTime objects to convert.public static Long toUnixTimestampLong(LocalDateTime value)
value - The DateTime object to convert.public static List<Long> toUnixTimestampLong(List<LocalDateTime> values)
values - The List of DateTime objects to convert.public static Map<String,Long> toUnixTimestampLong(Map<String,LocalDateTime> values)
values - The Map of DateTime objects to convert.public static List<Map<String,Long>> toArrayOfMapOfUnixTimestampLong(List<Map<String,LocalDateTime>> values)
values - The List of Map of DateTime objects to convert.public static LocalDateTime fromRfc1123DateTime(String date)
date - The datetime string in Rfc1123 format.public static String toRfc1123DateTime(LocalDateTime value)
value - The DateTime object to convert.public static List<String> toRfc1123DateTime(List<LocalDateTime> values)
values - The List of DateTime objects to convert.public static Map<String,String> toRfc1123DateTime(Map<String,LocalDateTime> values)
values - The Map of DateTime objects to convert.public static List<Map<String,String>> toArrayOfMapOfRfc1123DateTime(List<Map<String,LocalDateTime>> values)
values - The List of Map of DateTime objects to convert.public static LocalDateTime fromRfc8601DateTime(String date)
date - The datetime string in Rfc8601(Rfc3339) format.public static String toRfc8601DateTime(LocalDateTime value)
value - The DateTime object to convert.public static List<String> toRfc8601DateTime(List<LocalDateTime> values)
values - The List of DateTime objects to convert.public static Map<String,String> toRfc8601DateTime(Map<String,LocalDateTime> values)
values - The Map of DateTime objects to convert.public static List<Map<String,String>> toArrayOfMapOfRfc8601DateTime(List<Map<String,LocalDateTime>> values)
values - The List of Map of DateTime objects to convert.Copyright © 2025. All rights reserved.