Hacker News new | past | comments | ask | show | jobs | submit login

Any function with positional parameters can look awful taken out of context.



Can you clarify what you mean? The three parameters are year, month, and day. Which I think is fairly intuitive.

The problem is not with parameter ordering. Year and day are literal, month is zero indexed. So you wind up with (month -1) representing the actual month.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: