Converting seconds into days, hours, minutes and seconds
int days = secondsTotal / 60 / 60 / 24;
int hours = (secondsTotal / 60 / 60) % 24;
int minutes = (secondsTotal / 60) % 60;
int seconds = secondsTotal % 60;
Converting seconds into days, hours, minutes and seconds
int days = secondsTotal / 60 / 60 / 24;
int hours = (secondsTotal / 60 / 60) % 24;
int minutes = (secondsTotal / 60) % 60;
int seconds = secondsTotal % 60;
Leave a Reply