如何把总时间转换为时分秒

public void updateCallDuration(long duration, long remain) {

int hour = (int) (duration / 3600000);
int left = (int) (duration % 3600000);
int min = left / 60000;
left = left % 60000;
int sec = left / 1000;
left = left % 1000;
int ms = left / 10;

long callDuration = (byte) hour << 24 + (byte) min << 16 + (byte) sec << 8 + (byte) ms;

}

posted @ 2013-10-23 11:23  奋斗侠侠儿  阅读(366)  评论(0编辑  收藏  举报