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


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

package com.codingdict;

import java.time.LocalDate;
import java.time.temporal.ChronoField;

public class LocalDateDemo {
   public static void main(String[] args) {
       LocalDate date = LocalDate.parse("2014-12-03");
      System.out.println("Range : " + date.range(ChronoField.DAY_OF_YEAR ));
   }
}