I need System.currentTimeMillis()
to be converted into 3 variables:
int Years;
int DaysMonths;
int MinutesHours;
What I mean by DayMonths
, and MinutesHours
is that, let's say for example we have 2 hours. Then MinutesHours
should equale 120 (because 2hours = 120 minutes). But once it reaches 24hours, it should be 0 and passe it to DaysMonths
.
Same thing for the DaysMonths variable.
And I also need to know how to get this thing reversed. Using this 3 variables, I need an other method to get the System.currentTimeMillis()
from them.
I'm having hard time to explain this, but I hope you know what I mean. I really hate dealing with time in java. It's not my thing, but I need it really bad for a game project.