Uses of Class
java.time.MonthDay
-
Packages that use MonthDay 软件包 描述 java.time 日期,时间,瞬间和持续时间的主要API。 -
-
Uses of MonthDay in java.time
Methods in java.time that return MonthDay Modifier and Type 方法 描述 static MonthDayMonthDay. from(TemporalAccessor temporal)从时间对象获取一个MonthDay的实例。static MonthDayMonthDay. now()从默认时区的系统时钟获取当前月日。static MonthDayMonthDay. now(Clock clock)从指定的时钟获取当前的月日。static MonthDayMonthDay. now(ZoneId zone)从指定时区的系统时钟获取当前的月日。static MonthDayMonthDay. of(int month, int dayOfMonth)获得MonthDay的实例。static MonthDayMonthDay. of(Month month, int dayOfMonth)获得MonthDay的实例。static MonthDayMonthDay. parse(CharSequence text)从--12-03等文本字符串获取MonthDay的实例。static MonthDayMonthDay. parse(CharSequence text, DateTimeFormatter formatter)使用特定的格式化程序从文本字符串获取MonthDay的实例。MonthDayMonthDay. with(Month month)返回该MonthDay的副本。MonthDayMonthDay. withDayOfMonth(int dayOfMonth)返回MonthDay的副本,并更改日期。MonthDayMonthDay. withMonth(int month)返回该MonthDay的副本。Methods in java.time with parameters of type MonthDay Modifier and Type 方法 描述 LocalDateYear. atMonthDay(MonthDay monthDay)结合今年与一个月的日子,创造一个LocalDate。intMonthDay. compareTo(MonthDay other)比较这个月份到另一个月的日子。booleanMonthDay. isAfter(MonthDay other)检查这个月日是否在指定的月日之后。booleanMonthDay. isBefore(MonthDay other)检查这个月日是否在指定的月日之前。booleanYear. isValidMonthDay(MonthDay monthDay)检查今年的月日是否有效。
-