Sum time

  
Hi,

I would lilke to know how is possible to sum Time. I have severeal textboxs with Time (datatype)
how can i sum 00:23:21 + 12:23:34 ?

Tanks
out of the box I think you have to do something like.

first get the 1 var in seconds, either with diffseconds or so, or just custom calc.
then  add those seconds to the second var with AddSeconds
 how do i do that?
Hi José,

Sometime i had the same problem which you have, then i created an C# extension.
You only have to complete, add the seconds, because in my case i didn't used them.

Kind Regards,
Diogo Miguel
Tanks Diogo, do you have the Kv_Times.xif in server version 6?
José,

I'm sorry but no :(

Do you have some error?

P.s: I have seen the problem.
All you have to do is using this expression:

time = hora_1.AddHours(hora_2.Hour).AddMinutes(hora_2.Minute).AddSeconds(hora_2.Second);

Where time is an out DateTime variable and the hora_1 and hora_2 are two in DataTime variable.

Kind Regards,
Diogo Miguel
Hi

I apologize for the delay in replying, but this expression is put there exactly what I have and still does not work. =/

Cumps
Hi José,

Can you share your Extension?

To me it's working very well, i don't know why don't work for you :S

Best Regards,
Diogo Miguel
Can you share your oml whit an example?
Check the attachment.

It's working like a charm :)

Best Regards,
Diogo Miguel
Hope that helps, thanks.

Cumps