Java: Store start and end time point

Viewed 1564

Is there a convenient way to store time points (like a start and end time point)?

I need to store responsibilities where every timespan an userId is assigned. I thought of:

HashMap<Date[], Integer> responsibilities;

Where the Date-array stores the start- and end-date, but is there a more convenient way?

2 Answers
Related