Cancel
Showing results for 
Search instead for 
Did you mean: 

Time in table

Dear community,

 

it is possible to delete the milliseconds (see the attached image below) and, if necessary, round them?

Table.png

 Or even better starts from "hours"?

I've long time of production process simulation so i won't need seconds or minutes.

Thank you.

 

 

1 REPLY

Betreff: Time in table

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Francescopoli,

 

you can use a method for converting all your time definitions. The method can look like this:

 

var dt : Time := str_to_time("12:34:23.876")
var oneHour : time := 3600

var hours := dt/oneHour -- result=12.57329888888889
hours := round(hours)	-- result=13

 

 

Hope this helps.

Regards

GG

 

------------------------------------------------------------------------------------------------------

Did you like the answer? Then click the Thumbs Up button.

Did the answer solve your problem?  Then accept the answer as solution

 

Regards
GG

------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution