After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 628029 - GDateTime missing get_week_of_year method
GDateTime missing get_week_of_year method
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.25.x
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-08-26 12:16 UTC by Joseph Pingenot
Modified: 2010-09-06 10:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add g_date_time_get_week_of_year() (1.33 KB, patch)
2010-08-26 12:16 UTC, Joseph Pingenot
committed Details | Review

Description Joseph Pingenot 2010-08-26 12:16:25 UTC
Created attachment 168804 [details] [review]
Patch to add g_date_time_get_week_of_year()

The attached patch adds the following method:
gint                  g_date_time_get_week_of_year        (const GDateTime *datetime);

It just calls the internal g_date_time_get_week_number method looking for the weeknumber only and returns that.

The documentation above the function could probably use a little love, but it's a start.