diff --git a/src/main/java/org/mvnsearch/h2/mysql/DateTimeFunctions.java b/src/main/java/org/mvnsearch/h2/mysql/DateTimeFunctions.java index 97e596b..9912838 100644 --- a/src/main/java/org/mvnsearch/h2/mysql/DateTimeFunctions.java +++ b/src/main/java/org/mvnsearch/h2/mysql/DateTimeFunctions.java @@ -51,6 +51,10 @@ public static Date date(Timestamp date) throws Exception { public static LocalDateTime utcTimestamp() { return ZonedDateTime.now(ZoneId.of("UTC")).toLocalDateTime(); } + + public static LocalTime utcTime() { + return ZonedDateTime.now(ZoneId.of("UTC")).toLocalTime(); + } public static LocalDate utcDate() { return ZonedDateTime.now(ZoneId.of("UTC")).toLocalDate();