i need to convert any number into hours,minutes, and seconds in java..anyone got some tips/codes that i can use? im confused as ****.
You can use java.util.Calendar class.
Just create an instance, then set your number as time in miliseconds and then read the hour, minute, date, second, milisecond, etc.
Please read the java doc. The number you supply is 0 based but moment 0 is not the beginning of the epoch and you will have to adjust it accordingly.
N.B. DO NOT USE ANY TITLE LIKE !!!!!HELP!!!! OR SOMETHING SIMILAR. Just say what is your problem. Also read the notes of the moderator about how to make a decent posting!
Code in peace!
Hope this helps ..
Calendar calendar = null;
java.util.Date date = new java.util.Date();
calendar = Calendar.getInstance();
day = calendar.get(Calendar.DAY_OF_MONTH);
month = 1+calendar.get(Calendar.MONTH);
year = calendar.get(Calendar.YEAR);
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center