Hacker News new | ask | show | jobs
by phishphood 4864 days ago
don't know much about how Iranian dates work so I peeked inside the code to see the actual conversion.

Line 482 - $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

Umm, what about leap years, you know the ones that have 29 days in February?

1 comments

Looks as if lines 489 onwards are for detecting leap years.