Freak
Member
Hi - I am using a ML1400 to do some real time based control. Given that the RTC can deviate over time I have added to a PV+ tch screen the ability to edit the time. I am doing this by converting RTC:0.Hr and RTC:0.Min to an integer to both display and then writing to the RTC to change the time.
I have also built a string to display the day hour an minute neatly in one tag, this is the only bit I am unhappy with as the minute is displayed minus the leading zero, it doesn't affect the operation it just looks untidy.
Any ideas on how to add the leading zero? I note that it isn't there in the RTC:0.Min tag.
I guess I could write to the touch screen system time and display that as I think that does have the leading zero but is that the best option?
Cheers
Peter
I have also built a string to display the day hour an minute neatly in one tag, this is the only bit I am unhappy with as the minute is displayed minus the leading zero, it doesn't affect the operation it just looks untidy.
Any ideas on how to add the leading zero? I note that it isn't there in the RTC:0.Min tag.
I guess I could write to the touch screen system time and display that as I think that does have the leading zero but is that the best option?
Cheers
Peter