Commit 13802ceb3afcbc434641f561b3cc64eecdc9c5dc
1 parent
ca65267f
fix:DateUtils、LocalDateTimeUtils 单词拼写错误
Showing
2 changed files
with
12 additions
and
12 deletions
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/date/DateUtils.java
| ... | ... | @@ -74,30 +74,30 @@ public class DateUtils { |
| 74 | 74 | * 创建指定时间 |
| 75 | 75 | * |
| 76 | 76 | * @param year 年 |
| 77 | - * @param mouth 月 | |
| 77 | + * @param month 月 | |
| 78 | 78 | * @param day 日 |
| 79 | 79 | * @return 指定时间 |
| 80 | 80 | */ |
| 81 | - public static Date buildTime(int year, int mouth, int day) { | |
| 82 | - return buildTime(year, mouth, day, 0, 0, 0); | |
| 81 | + public static Date buildTime(int year, int month, int day) { | |
| 82 | + return buildTime(year, month, day, 0, 0, 0); | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * 创建指定时间 |
| 87 | 87 | * |
| 88 | 88 | * @param year 年 |
| 89 | - * @param mouth 月 | |
| 89 | + * @param month 月 | |
| 90 | 90 | * @param day 日 |
| 91 | 91 | * @param hour 小时 |
| 92 | 92 | * @param minute 分钟 |
| 93 | 93 | * @param second 秒 |
| 94 | 94 | * @return 指定时间 |
| 95 | 95 | */ |
| 96 | - public static Date buildTime(int year, int mouth, int day, | |
| 96 | + public static Date buildTime(int year, int month, int day, | |
| 97 | 97 | int hour, int minute, int second) { |
| 98 | 98 | Calendar calendar = Calendar.getInstance(); |
| 99 | 99 | calendar.set(Calendar.YEAR, year); |
| 100 | - calendar.set(Calendar.MONTH, mouth - 1); | |
| 100 | + calendar.set(Calendar.MONTH, month - 1); | |
| 101 | 101 | calendar.set(Calendar.DAY_OF_MONTH, day); |
| 102 | 102 | calendar.set(Calendar.HOUR_OF_DAY, hour); |
| 103 | 103 | calendar.set(Calendar.MINUTE, minute); | ... | ... |
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/date/LocalDateTimeUtils.java
| ... | ... | @@ -69,17 +69,17 @@ public class LocalDateTimeUtils { |
| 69 | 69 | * 创建指定时间 |
| 70 | 70 | * |
| 71 | 71 | * @param year 年 |
| 72 | - * @param mouth 月 | |
| 72 | + * @param month 月 | |
| 73 | 73 | * @param day 日 |
| 74 | 74 | * @return 指定时间 |
| 75 | 75 | */ |
| 76 | - public static LocalDateTime buildTime(int year, int mouth, int day) { | |
| 77 | - return LocalDateTime.of(year, mouth, day, 0, 0, 0); | |
| 76 | + public static LocalDateTime buildTime(int year, int month, int day) { | |
| 77 | + return LocalDateTime.of(year, month, day, 0, 0, 0); | |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - public static LocalDateTime[] buildBetweenTime(int year1, int mouth1, int day1, | |
| 81 | - int year2, int mouth2, int day2) { | |
| 82 | - return new LocalDateTime[]{buildTime(year1, mouth1, day1), buildTime(year2, mouth2, day2)}; | |
| 80 | + public static LocalDateTime[] buildBetweenTime(int year1, int month1, int day1, | |
| 81 | + int year2, int month2, int day2) { | |
| 82 | + return new LocalDateTime[]{buildTime(year1, month1, day1), buildTime(year2, month2, day2)}; | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** | ... | ... |