Example usage for java.util GregorianCalendar getWeekYear

List of usage examples for java.util GregorianCalendar getWeekYear

Introduction

In this page you can find the example usage for java.util GregorianCalendar getWeekYear.

Prototype

@Override
public int getWeekYear() 

Source Link

Document

Returns the week year represented by this GregorianCalendar .

Usage

From source file:Main.java

public static void main(String[] args) {

    GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();

    System.out.println(cal.getTime());

    System.out.println(cal.getWeekYear());

}