static final int HOURS_PER_DAY = 24;
static final int MINUTES_PER_HOUR = 60;
static final int SECONDS_PER_MINUTE = 60;
static final int MILLISECONDS_PER_SECOND = 1000;

/* value to break down into hours, minutes, seconds, milliseconds */
long togo = 112233445566778899L; /* milliseconds */

int millis = (int)( togo % MILLISECONDS_PER_SECOND );
/* /= is just shorthand for togo = togo / 1000 */
togo /= MILLISECONDS_PER_SECOND;

int seconds = (int)( togo % SECONDS_PER_MINUTE );
togo /= SECONDS_PER_MINUTE;

int minutes = (int)( togo % MINUTES_PER_HOUR );
togo /= MINUTES_PER_HOUR;

int hours = (int)( togo % HOURS_PER_DAY );
int days = (int)( togo / HOURS_PER_DAY );