Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

time calculation

Former Member
0 Likes
355

Hi,

i wanna to show the euipment working duration in hr and minute.

i hav the data in the format hh:mm:ss.

i can calculate and add the time in the form of seconds or minutes or hrs.

but my problem is when again i m going to show the output at that time requirement is like HH:MM only means we are rejecting the seconds.

well i m able to show like 14.45 hrs but they want in hr and minute so plz if u have any idea to convert in this format.

please remember that first i m adding that time so time will be either in hr or minute of seconds then finally i m going to show in hh:mm or hh.mm

thanks in advance

regards

vijay dwivedi

marks will b sure for each helpfull answers*

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
322

Hi,

What u can do is to take a variable of type char length 8.

Once u add the time and get the final time in say LV_TIME variable, then what u can do is

Variable = LV_TIME.

Write : Variable(5).

This will write the time in HH:MM format.

Regards,

Himanshu

1 REPLY 1
Read only

Former Member
0 Likes
323

Hi,

What u can do is to take a variable of type char length 8.

Once u add the time and get the final time in say LV_TIME variable, then what u can do is

Variable = LV_TIME.

Write : Variable(5).

This will write the time in HH:MM format.

Regards,

Himanshu