int t,s,m,h;t=time(0);s = t%60;m = t%3600/60;h = (t%(3600*24)/3600+8)%24;time(0)所获得是1970年到现在的时间截。为什么 时间截60的余数是秒。时间截3600的余数再除以60是分呢