Skip to main content
1-Visitor
September 7, 2010
Solved

How to code a clock

  • September 7, 2010
  • 1 reply
  • 3677 views

minutes go from 1 to 60 min and then reset incrementing Hour which goes from 1 to 24 and after that the day count is incremented and hour is reset.

How to do this in mathcad?

Best answer by RichardJ

Do you mean something like this?

1 reply

19-Tanzanite
September 7, 2010

Do you want this to actually show real time? Mathcad is not suited to such a task. Programming the counters would be easy enough, but they will not run in real time (more like several weeks per microsecond of real time!)

1-Visitor
September 7, 2010

no not real time. i just need it to track the sun under arbitrary days and hours. not anything real time.

i need accuracy of 1min only.

1-Visitor
September 7, 2010

You can use the modulo function for determining when something is repeat its cycle. However, you've not said what format your time data is in, so it's not possible to give you a better answer.

TTFN