Hi fritzke,
If you want to write the code yourself, all you need is a couple of key numbers.
86400 -- the number of seconds in a day.
1461 -- the number of days in 4 years.
Divide your number by 86400. This gives you the number of elapsed days.
Take the number module 86400. This gives you the number of seconds into the target day.
Solve the years 4 at a time. That way the leap year logic plays out the cleanest.
That's about it.
Good Luck,
Kent
Main Topics
Browse All Topics





by: jaime_olivaresPosted on 2007-10-22 at 07:43:16ID: 20123525
Use strftime() standard function