Example usage for java.util GregorianCalendar getWeeksInWeekYear

List of usage examples for java.util GregorianCalendar getWeeksInWeekYear

Introduction

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

Prototype

@Override
public int getWeeksInWeekYear() 

Source Link

Document

Returns the number of weeks in 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.getWeeksInWeekYear());

}