It looks like you're new here. Sign in or register to get started.
Alagar wrote: Dear All, I have a variable with Time Datatype it has a value time. i want to split hr, Minutes and Seconds. Help me...
Comments
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Hi
Hours, Minutes, Seconds and Millisecond are integer.
Milliseconds := TIME - 000000000T;
Hours := Milliseconds DIV 1000 DIV 60 DIV 60;
Milliseconds -= Hours * 1000 * 60 * 60;
Minutes := Milliseconds DIV 1000 DIV 60;
Milliseconds -= Minutes * 1000 * 60;
Seconds := Milliseconds DIV 1000;
Milliseconds -= Seconds * 1000;
MESSAGE('%1 %2 %3', Hours, Minutes, Milliseconds);
Bye
Matteo
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!