Does anyone have good routines for setting up a DS1302 RTC with a numeric keypad?

Hello Everyone
Just trying to save myself a little programming, and I was wondering if anyone had a good set of functions for setting the month, day, year, weekday, hours, minutes, and seconds, of the DS1302 RTC, with a 16 key numeric keypad. If you have any handy, I would appreciate being able to look at them and possibly use them.
Thanks In Advance
Bruce
Just trying to save myself a little programming, and I was wondering if anyone had a good set of functions for setting the month, day, year, weekday, hours, minutes, and seconds, of the DS1302 RTC, with a 16 key numeric keypad. If you have any handy, I would appreciate being able to look at them and possibly use them.

Thanks In Advance
Bruce
Comments
This is not exactly what you asked for, but you might take a look at this to see if it is of any use to you:
http://obex.parallax.com/objects/696/
I'm working on a demo example of this approach for the ds1302_full object, but haven't finished debugging it yet.
I currently have the buttons and the DS1302, it is all wired up and ready to go. All I have to do is program it.
Bruce
As you know from another post you need to provide BCD values to the DS1302 (and most other RTCs). That's simple:
Finally, in your practical code you might do something like this:
It is my opinion that this style of code not only serves you, but those you hope to share it with because the input routines can be used in many applications as-is.