Here you can find the source of cloneCalendar(Calendar in)
Parameter | Description |
---|---|
del | increment |
public static Calendar cloneCalendar(Calendar in)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**{ method//from w ww . j a v a 2 s . c o m @name cloneCalendar @function return a copy oif the input Calendar @param del increment @return new date }*/ public static Calendar cloneCalendar(Calendar in) { GregorianCalendar then = new GregorianCalendar(in.get(Calendar.YEAR), in.get(Calendar.MONTH), in.get(Calendar.DATE), in.get(Calendar.HOUR_OF_DAY), in.get(Calendar.MINUTE), in.get(Calendar.SECOND)); return (then); } }