Java Year currentYear()

Here you can find the source of currentYear()

Description

current Year

License

Open Source License

Declaration

public static Integer currentYear() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {

    public static Integer currentYear() {

        GregorianCalendar gFechaActual = new GregorianCalendar();
        return gFechaActual.get(GregorianCalendar.YEAR);
    }//from w  w w.  j a  v  a2  s  . com
}

Related

  1. createCalendarAtBeginningOfYear(int year)
  2. daysInYear(int year)
  3. differenceInYears(final Calendar a, final Calendar b)
  4. diffYears(Date day1, Date day2)
  5. IsInLeapYear(Date date1)