提交 763f4a33 authored 作者: Stéphane Eintrazi's avatar Stéphane Eintrazi

update code format

上级 fcb34bbb
......@@ -378,7 +378,7 @@ public final class DateTimeFunctions {
}
return result;
}
/**
* Truncate the given date to 'day'
*
......@@ -389,7 +389,7 @@ public final class DateTimeFunctions {
public static Value truncateDate(String timeUnitStr, Value value) {
Value result;
int timeUnit = getDatePart(timeUnitStr);
// Retrieve the dateValue and the time in nanoseconds if the date.
long[] fieldDateAndTime = DateTimeUtils.dateAndTimeFromValue(value);
long dateValue = fieldDateAndTime[0];
......@@ -458,6 +458,7 @@ public final class DateTimeFunctions {
}
if (timeNanos == null) {
// Return an exception in the timeUnit is not recognized
throw DbException.getUnsupportedException(timeUnitStr);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论