System time... Add an hour

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • System time... Add an hour

    I am making simple app to display time for cruise ships... I need to have buttons that simply add or subtract an hour from the 24 hour system time and then display in the label as such till told to restore or add or minus again...

    I have tried several methods and none seem to be working for me. Do i need to turn time into seconds, do the math, then convert it back? and what about if I am switching between 12 and 24 hour time?
  • yosik
    Indigo Rose Customer
    • Jun 2002
    • 1858

    #2
    Reading the manual, finding System.GetTime action will certainly help you.
    Basically, use a ontimer event (launch it every second if you want) and use System.GetTime(4) for the hours.

    Good luck
    Yossi

    Comment

    Working...
    X