Package com.maker.eventdatetimemaker
Class TimeUtil
java.lang.Object
com.maker.eventdatetimemaker.TimeUtil
Utility class for converting
LocalDateTime
to EventDateTime
.- Since:
- 2024. 7. 6.
- Author:
- yongjunhong
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.api.services.calendar.model.EventDateTime
getEventDateTimeFromLocalDateTime
(LocalDateTime localDateTime) Converts aLocalDateTime
toEventDateTime
.static LocalDateTime
getLocalDateTimeFromDateTime
(com.google.api.services.calendar.model.EventDateTime eventDateTime) Converts aDateTime
toLocalDateTime
.
-
Method Details
-
getEventDateTimeFromLocalDateTime
public static com.google.api.services.calendar.model.EventDateTime getEventDateTimeFromLocalDateTime(LocalDateTime localDateTime) Converts aLocalDateTime
toEventDateTime
.- Parameters:
localDateTime
- TheLocalDateTime
to convert.- Returns:
- The corresponding
EventDateTime
.
-
getLocalDateTimeFromDateTime
public static LocalDateTime getLocalDateTimeFromDateTime(com.google.api.services.calendar.model.EventDateTime eventDateTime) Converts aDateTime
toLocalDateTime
.- Parameters:
eventDateTime
- TheDateTime
to convert.- Returns:
- The corresponding
LocalDateTime
.
-