提交 30d95376 authored 作者: Stéphane Eintrazi's avatar Stéphane Eintrazi

Update code style

上级 c423cd92
......@@ -468,6 +468,7 @@ public final class DateTimeFunctions {
long yearForQuarter = DateTimeUtils.yearFromDateValue(dateValue);
int monthForQuarter = DateTimeUtils.monthFromDateValue(dateValue);
// Round the month to lower quarter
if (monthForQuarter >= 10) {
monthForQuarter = 10;
} else if (monthForQuarter >= 7) {
......@@ -500,7 +501,7 @@ public final class DateTimeFunctions {
case CENTURY:
long yearForCentury = DateTimeUtils.yearFromDateValue(dateValue);
yearForCentury = (long) (Math.floor( (yearForCentury - 1) / 100) * 100) + 1;
yearForCentury = (long) (Math.floor((yearForCentury - 1) / 100) * 100) + 1;
dateValue = DateTimeUtils.dateValue(yearForCentury, 1, 1);
timeNanos = 0l;
break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论