java.time.MonthDay.query() 方法示例


java.time.MonthDay.query() 方法示例

package com.codingdict;

import java.time.MonthDay;
import java.time.temporal.TemporalQueries;

public class MonthDayDemo {
   public static void main(String[] args) {

      MonthDay date = MonthDay.parse("--10-15");
      System.out.printf("MonthDay Chronology is %s%n",
         date.query(TemporalQueries.chronology()));
   }
}