Java Year Current currentDayForYear(long selectTime)

Here you can find the source of currentDayForYear(long selectTime)

Description

current Day For Year

License

Apache License

Return

int

Declaration

public static int currentDayForYear(long selectTime) 

Method Source Code

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

import java.util.Calendar;

public class Main {

    public static int currentDayForYear(long selectTime) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(selectTime);
        return calendar.get(Calendar.DAY_OF_YEAR);
    }// www  . ja v  a 2s.co  m
}

Related

  1. currentYear()
  2. currentYear()
  3. currentYear()
  4. getCurMonthDayNumber(String strYear, String strMonth)