龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2022-11-2 12:52

【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]