need advise with calender/date specefic thing
in
Programming Questions
•
1 years ago
I have a list of fatalities that happen during 2 years. Sometimes there are days that there happened nothing and sometimes 10 things a day.
I would like to get them by month for example. Or get them all from a certain year.
Like now i'm working like:
class Year {
ArrayList<Month> months = ...
and a class for months, and for days.
But this way if i want to move something to the next day wich happens to be the next month for example would be a hell.
On stackoverflow i read a lot of things like "extending Calendar is a bad idea". But i didn't found a good solution for what i want so does anyone have suggestions?
I would like to get them by month for example. Or get them all from a certain year.
Like now i'm working like:
class Year {
ArrayList<Month> months = ...
and a class for months, and for days.
But this way if i want to move something to the next day wich happens to be the next month for example would be a hell.
On stackoverflow i read a lot of things like "extending Calendar is a bad idea". But i didn't found a good solution for what i want so does anyone have suggestions?
1