Java Year Get getCurrentYearAsInt()

Here you can find the source of getCurrentYearAsInt()

Description

get Current Year As Int

License

Open Source License

Declaration

static int getCurrentYearAsInt() 

Method Source Code


//package com.java2s;
import java.util.*;

public class Main {
    static int CURRENT_YEAR_AS_INT = Calendar.getInstance().get(Calendar.YEAR);

    static int getCurrentYearAsInt() {
        return CURRENT_YEAR_AS_INT;
    }/*from  w  ww  . java  2s .  c  o m*/
}

Related

  1. currentYearStr()
  2. getBeforeYear()
  3. getBeginningOfYear()
  4. getCalendarYearString(Calendar date)
  5. getCurrentYear()
  6. getCurrYearFirst()
  7. getDateOneYearFromNow()
  8. getDaysFromYearZero(Calendar date)
  9. getFewYearsTime(String date, int year)