Example usage for java.time OffsetDateTime getDayOfYear

List of usage examples for java.time OffsetDateTime getDayOfYear

Introduction

In this page you can find the example usage for java.time OffsetDateTime getDayOfYear.

Prototype

public int getDayOfYear() 

Source Link

Document

Gets the day-of-year field.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.now();
    int l = o.getDayOfYear();
    System.out.println(l);/*from  ww  w  . j  a v a2s  .com*/
}