Java Calendar Add addMilliseconds(Calendar calendar, Long amount)

Here you can find the source of addMilliseconds(Calendar calendar, Long amount)

Description

add Milliseconds

License

Open Source License

Declaration

public static Calendar addMilliseconds(Calendar calendar, Long amount) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static Calendar addMilliseconds(Calendar calendar, Long amount) {
        if (amount != null) {
            calendar.add(Calendar.MILLISECOND, (int) amount.floatValue());
        }//from  w  w  w .  j  a  va 2s .  c  o  m
        return calendar;
    }
}

Related

  1. addDays(Calendar calendar, int days)
  2. addDays(Calendar src, int days)
  3. addDays(final int days, final Calendar from)
  4. addDayToCalendar(Calendar calendar, int day)
  5. addLocaleToCalendar(Calendar date, String locale)
  6. addMonth(Calendar cal, int period)
  7. addMonthDayToCal(Calendar cal, int month, int day)
  8. addSeconds(Calendar calendar, int amount)
  9. addToUTCMilliSeconds(int calendarTime, int actualValue)