📜  按时区 +7 获取带有日历的月份 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:06.683000             🧑  作者: Mango

代码示例1
LocalDate currentDate = LocalDate.now(); // 2016-06-17
DayOfWeek dow = currentDate.getDayOfWeek(); // FRIDAY
int dom = currentDate.getDayOfMonth(); // 17
int doy = currentDate.getDayOfYear(); // 169
Month m = currentDate.getMonth(); // JUNE
int y = currentDate.getYear(); // 2016