clean up g_date_time_get_week_day()
authorRyan Lortie <desrt@desrt.ca>
Sun, 26 Sep 2010 22:51:23 +0000 (18:51 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sun, 26 Sep 2010 22:53:28 +0000 (18:53 -0400)
commit1a0dbff2365cc956ed0675a790dc09ea40f04fd1
tree52f00cbea28df57ef1c56fa6b2094e0e50e885ae
parente77faeb9209518f422fa6b035b8f4dd4401bf0e1
clean up g_date_time_get_week_day()

No functionality changes here.

Vastly simplify the algorithm for calculating the day of the week.

Fix the documentation (which is incorrectly stating that 1 means
Sunday) and clarify that the number we return is in line with ISO 8601
week day numbering.
glib/gdatetime.c