Post Reply 
Time and Battery Indicators
10-25-2017, 06:11 AM (This post was last modified: 10-25-2017 06:26 AM by webmasterpdx.)
Post: #8
RE: Time and Battery Indicators
Jacob, you can get the Time from the system variable called Time (case matters)...this is in CAS mode.
Get the time value and the value to the left of the decimal point is the hour (24 hour clock).
Then, subtract the hour and multiply by 60 to get the minute left of decimal point. Then subtract the minute from that and multiply by 60 to get the seconds (round to nearest by adding 0.5 and getting integer of).
e.g.

Time 23.0669444444 11PM

Ans-23 0.0669444444

Ans*60 4.016666664 11:04 PM

Ans-4 0.016666663997

Ans*60 0.99999983 11:04:01 PM (1 second)

In Home mode, Time is returned using degree-minute-second mode, except degrees is hours. You can access the CAS Time by using CAS.Time

Note that I tried a program running and Time is updated while running.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Time and Battery Indicators - Jacob Wall - 10-22-2017, 09:30 PM
RE: Time and Battery Indicators - webmasterpdx - 10-25-2017 06:11 AM



User(s) browsing this thread: 1 Guest(s)