‎2007 Jun 21 7:34 AM
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*
‎2007 Jun 21 7:39 AM
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
‎2007 Jun 21 7:39 AM
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