Java Calendar Millisecond getCalendarXDaysFromY(long startTimeInMillis, int daysFromStartDate)

Here you can find the source of getCalendarXDaysFromY(long startTimeInMillis, int daysFromStartDate)

Description

get Calendar X Days From Y

License

Open Source License

Declaration

private static Calendar getCalendarXDaysFromY(long startTimeInMillis, int daysFromStartDate) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    private static Calendar getCalendarXDaysFromY(long startTimeInMillis, int daysFromStartDate) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(startTimeInMillis);
        cal.add(Calendar.DAY_OF_YEAR, daysFromStartDate);

        return cal;
    }// w ww .j  a va 2 s . c  o  m
}

Related

  1. calendar(long millis)
  2. calendarToGMTMillis(Calendar cal)
  3. calendarToGMTMillis(Calendar cal)
  4. clearCalendarMillisecond(Calendar cal)
  5. elapsedMillis(Calendar before, Calendar after)
  6. getDateMilliseconds(Calendar pDate)
  7. getLastMilli(Calendar cal)
  8. getMillisecond(Calendar calendar)
  9. getMilliSinceMidnight(Calendar arg)