【SecondsToTime_s】
[code]inputs: Seconds( numericsimple );variables: var0( 0 ), var1( 0 ), var2(0);
var0 = IntPortion ( Seconds/(60*60) ) ;
var1 = IntPortion ((Seconds - 60*60*var0)/60);
var2 = Seconds - (60*60*var0 + var1*60);
SecondsToTime_s = 10000 * Mod( var0, 24 ) + 100*var1 + var2;
[/code]
页:
[1]