Class TimeUtil

java.lang.Object
com.maker.eventdatetimemaker.TimeUtil

public final class TimeUtil extends Object
Utility class for converting LocalDateTime to EventDateTime.
Since:
2024. 7. 6.
Author:
yongjunhong
  • Method Details

    • getEventDateTimeFromLocalDateTime

      public static com.google.api.services.calendar.model.EventDateTime getEventDateTimeFromLocalDateTime(LocalDateTime localDateTime)
      Converts a LocalDateTime to EventDateTime.
      Parameters:
      localDateTime - The LocalDateTime to convert.
      Returns:
      The corresponding EventDateTime.
    • getLocalDateTimeFromDateTime

      public static LocalDateTime getLocalDateTimeFromDateTime(com.google.api.services.calendar.model.EventDateTime eventDateTime)
      Converts a DateTime to LocalDateTime.
      Parameters:
      eventDateTime - The DateTime to convert.
      Returns:
      The corresponding LocalDateTime.