Here you can find the source of addMilliseconds(Calendar calendar, Long amount)
public static Calendar addMilliseconds(Calendar calendar, Long amount)
//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; } }