Calendar.getInstance()... basic question

Viewed 50007

Does Calendar.getInstance() work like a regular singleton in the sense that if I've called getInstance somewhere else and set the day, month, etc then if I call Calendar.getInstance() somewhere else those fields will be set to whatever I set them before? In other words, if I want the Calendar.getInstance() to return a Calendar object with the current time and day, etc, what do I need to do? Just call clear()? Does that reset the instance to the current time, etc?

My apologies if this is a stupid question.

2 Answers
Related