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


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

package com.codingdict;

import java.time.LocalDate;
import java.time.temporal.TemporalQueries;

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

      LocalDate date = LocalDate.parse("2014-12-03");
      System.out.printf("LocalDate precision is %s%n",
         date.query(TemporalQueries.precision()));
   }
}