Ah ha! So that's you add that nice code formatting. Please see the above post for the changes you suggested. And thank you for slogging through it when it was in plain text.
As far as the purpose-- it's meant to give a date that can be used to tell the time by the stars from wherever the phone happens to be. It subtracts the difference in time zones between that of my home town and that of wherever the phone is from the difference in longitudes and adds a special date that we use in my home town. ie:
[Longitude of phone - longitude of hometown] + 15 [time zone hometown - timezone phone] + special date in home town.
If you're genuinely interested, check out this website:
http://www.johnpratt.com/items/astronomy/telltime.html
--What this website doesn't mention is that the special date (on the website, it says March 7) varies by about 15-20 days in the US and can vary up to 50 days in other parts of the world depending on your longitude... all because of man's timezones.
Thanks again for your help.