Post Reply 
HP-71B Software for navigation
09-01-2019, 11:41 AM (This post was last modified: 09-01-2019 11:44 AM by Erwin.)
Post: #27
RE: HP-71B Software for navigation
Dear auditorium,

I'm working on my sunlight program to expand the function I wrote in my past post and fiddling around with the Date and Time presentation. Cause I used the EXCEL from blackbearing straight forward, the program split up days, month, years and hours, minutes, seconds in single variables for calculation (I do this from DATE$ and TIME$).
For my next step in expanding the program I want to save the input data and results in a SDATA file and so keep those variables (not using TIME$, DATE$ and therefore a DATA file).
The problem I face is, that when I want to show date and time again on display, those with single digits are presented without a leading ZERO. It looks strange but it is not an error.

Example for time: Variable B(2), B(3), B(4) ... are representing hours:minutes:seconds (similar for the date).
Code:
STR$(B(2))&":"&STR$(B(3))&":"&STR$(B(4))
There is no fault in the figures of the result but it looks strange.
Code:
2019/9/9 - 12:5:23

I tried to overcome this with the USING statement, cause it is only for showing in the display but without success. The solution I don't want to use is, to convert it to another format (and handle it with the JPC ROM possibilities Date, Time conversion tools)

Has anybody a solution for this - "I can't see the wood cause all of the trees" (an Austrian saying)

NEW: I started an additional function LAN (local apparent noon) with regression analysis. So to have two possibilities for steering by sun. The core program is for all those calculations.

best regards
Erwin
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP-71B Software for navigation - Erwin - 02-05-2019, 05:49 PM
RE: HP-71B Software for navigation - Erwin - 04-11-2019, 08:43 PM
RE: HP-71B Software for navigation - Erwin - 04-12-2019, 11:36 AM
RE: HP-71B Software for navigation - Erwin - 04-21-2019, 02:32 PM
RE: HP-71B Software for navigation - Erwin - 04-21-2019, 03:32 PM
RE: HP-71B Software for navigation - Erwin - 04-21-2019, 03:43 PM
RE: HP-71B Software for navigation - Erwin - 04-22-2019, 05:53 AM
RE: HP-71B Software for navigation - Erwin - 04-22-2019, 02:31 PM
RE: HP-71B Software for navigation - Erwin - 05-03-2019, 03:57 PM
RE: HP-71B Software for navigation - Erwin - 05-10-2019, 11:31 AM
RE: HP-71B Software for navigation - Erwin - 05-12-2019, 06:33 PM
RE: HP-71B Software for navigation - Erwin - 05-10-2019, 02:10 PM
RE: HP-71B Software for navigation - Erwin - 07-17-2019, 08:10 PM
RE: HP-71B Software for navigation - Erwin - 07-19-2019, 04:26 PM
RE: HP-71B Software for navigation - Erwin - 07-20-2019, 04:59 AM
RE: HP-71B Software for navigation - Erwin - 08-11-2019, 11:08 AM
RE: HP-71B Software for navigation - Erwin - 08-11-2019, 04:44 PM
RE: HP-71B Software for navigation - Erwin - 09-01-2019 11:41 AM
RE: HP-71B Software for navigation - Erwin - 09-01-2019, 04:42 PM



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