Java Year From getYearOfTime(Long time)

Here you can find the source of getYearOfTime(Long time)

Description

get Year Of Time

License

Apache License

Declaration

public static Integer getYearOfTime(Long time) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static Integer getYearOfTime(Long time) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(time);// ww w. ja  va2  s . c o m

        return cal.get(Calendar.YEAR);
    }
}

Related

  1. getYearMonthArray(Integer yearMonth)
  2. getYearMonthDays(int year, int month)
  3. getYearNumberofdays(String date)
  4. getYearOfDayMark(int day)
  5. getYearOfPreYearWeek(int year, int week)
  6. getYears(Integer limit)
  7. getyears(List numberList)
  8. getYearStart(int year)
  9. getYearStart(long ts)