📜  将毫秒转换为分和秒的 Java 程序 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:10.897000             🧑  作者: Mango

代码示例2
# The division operator below returns the result as a rounded down integer
function to_tuple(x):
    h = x / (60*60*1000)
    x = x - h*(60*60*1000)
    m = x / (60*1000)
    x = x - m*(60*1000)
    s = x / 1000
    x = x - s*1000
    return (h,m,s,x)