calendar.getInstance() or calendar.clone()
- by Pangea
I need to make a copy of a given date 100s of times (I cannot pass-by-reference). I am wondering which of the below two are better options
newTime=Calendar.getInstance().setTime(originalDate);
OR
newTime=originalDate.clone();
Performance is of main conern here.
thx.