The Museum of HP Calculators

HP Forum Archive 09

[ Return to Index | Top of Index ]

Date Functions (DOW, DDATE, DATE+)
Message #1 Posted by A.J. Wolnski on 8 Nov 2002, 9:40 p.m.

I use the date functions of the 41CX (like DOW, DDATE and DATE+). Does anyone know of any other HP calculator that has these same functions?

      
Re: Date Functions (DOW, DDATE, DATE+)
Message #2 Posted by Vieira, Luiz C. (Brazil) on 8 Nov 2002, 10:01 p.m.,
in response to message #1 by A.J. Wolnski

Hi;

you will find DATE+ and DDAYS as available functions in the HP48 repertoire. DOW is not available in the HP48, but there is a way to achieve it.

When you have two numbers, one in Level 2 for the date and another in Level 1 for the time, you can use the sequence

TSTR 1 3 SUB
or the program
«TSTR 1 3 SUB »
and yoú'll have the first three letters of the day-of-week (SUN, MON, TUE...). TSTR (Time STRing) takes both numbers and returns a string of the form
"DOW Date Time"
.

Hope it helps.

            
I forgot the Financials! (was Date Functions (DOW, DDATE, DATE+))
Message #3 Posted by Vieira, Luiz C. (Brazil) on 8 Nov 2002, 10:53 p.m.,
in response to message #2 by Vieira, Luiz C. (Brazil)

Hi;

I completely forgot the financials. Since the HP38E/C (as far as I know), many financials have these functions. The HP12C has DATE and [DELTA]DYS, the HP17BII and HP19BII also have equivalent, interactive menus to find dates and days between dates. Also, the discontinued HP27S has functions for date arithmetic, too (the woodstock HP27 does not have date arithmetic).

Both the HP10B(10BII) and HP14B do not offer date arithmetic.

I'm sorry I did not add this information in previous post.

Best regards.

            
Re: Date Functions (DOW, DDATE, DATE+)
Message #4 Posted by MNeu on 9 Nov 2002, 10:25 a.m.,
in response to message #2 by Vieira, Luiz C. (Brazil)

Luis Thank you for this program. It works like a charm on my 48G, doesn't work on the 49G (Version 16) Any suggestions?

                  
Re: Date Functions (DOW, DDATE, DATE+)
Message #5 Posted by Vieira, Luiz C. (Brazil) on 9 Nov 2002, 7:17 p.m.,
in response to message #4 by MNeu

Hi;

In fact, this program runs originaly in an HP49G, O.S. rev #1.19-5, and it works fine.

What do you get when running? Error message? Which one? Did you try each step at a time? Try TSTR alone and see if there is a string in stack Level 1. Check flag -42 (DMY/M.DY) and the time format you are using.

Let's see what's going on.

Cheers.

                        
Re: Date Functions (DOW, DDATE, DATE+)
Message #6 Posted by M Neu on 11 Nov 2002, 6:07 p.m.,
in response to message #5 by Vieira, Luiz C. (Brazil)

Luis Flags 41 and 42 are clear. Re-entered the program into my 49, no error message, the program works fine. Also, about 15 minutes after sending my request to you, I pushed the NXT button on my 49 one additional time and discovered TSTR. I was so embarrased. Thnks again for your help. Mike

      
Re: Date Functions (DOW, DDATE, DATE+)
Message #7 Posted by db(martinez,california) on 8 Nov 2002, 11:00 p.m.,
in response to message #1 by A.J. Wolnski

a.j. - the 12c will take a date & a number of days and give you the day of the week. that could be used as dow. in deltadate (ddate) it will also give the number of days between two dates. devide that by 30.4375 and you'll know how many months old you are. i for example am 567 months old, but i don't look a day over 550. - d

      
Re: Date Functions (DOW, DDATE, DATE+)
Message #8 Posted by Renato on 9 Nov 2002, 4:00 a.m.,
in response to message #1 by A.J. Wolnski

HP-41 Standard Applications Handbook has DOW, DDAYS programs to key in - so you can use those functions on a 41C/CV


[ Return to Index | Top of Index ]

Go back to the main exhibit hall