Java Calendar Year year(Calendar date)

Here you can find the source of year(Calendar date)

Description

year

License

Apache License

Declaration

public static int year(Calendar date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    public static int year(Calendar date) {
        return date.get(Calendar.YEAR);
    }//  www.  j  a  v a  2  s. c  o  m
}

Related

  1. toCalendar(int year, int month, int day, int hour, int minutes, int seconds)
  2. toStringYearMonth(Calendar calendar)
  3. truncCalendarToHalfYear(Calendar c)
  4. truncCalendarToYear(Calendar c)
  5. year(Calendar calendar)