Why does GtkCalendar counts months from 0?

Posted by int_ua on Ask Ubuntu See other posts from Ask Ubuntu or by int_ua
Published on 2012-06-27T01:36:01Z Indexed on 2012/06/27 3:23 UTC
Read the original article Hit count: 147

So I spent several hours in rage, figuring out why isn't my code writing to the /sys/class/rtc/rtc0/wakealarm correctly. The problem is that it doesn't return anything if the value is wrong. And finally I noticed this small

5

between the year and the day. Why isn't it counting days and years from zero for consistency?

For comparison: QCalendarWidget counts month from 1 to 12 (docs)

So GtkCalendar... F**k You!

© Ask Ubuntu or respective owner

Related posts about python

Related posts about application-development