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 615900 - [PATCH] add g_date_get_time_t and g_date_get_time_val
[PATCH] add g_date_get_time_t and g_date_get_time_val
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
2.24.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-04-15 22:31 UTC by Paolo Bonzini
Modified: 2017-11-16 10:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.84 KB, patch)
2010-04-15 22:35 UTC, Paolo Bonzini
none Details | Review

Description Paolo Bonzini 2010-04-15 22:31:28 UTC
These two are interestingly missing, unlike their setter counterparts.

I'm using them in the testcases for the next patch.  Testcases for these are included here.
Comment 1 Paolo Bonzini 2010-04-15 22:35:17 UTC
Created attachment 158854 [details] [review]
patch
Comment 2 Behdad Esfahbod 2010-05-29 17:37:42 UTC
See bug 50076.
Comment 3 Paolo Bonzini 2010-05-31 10:30:35 UTC
I don't think this is very much related to bug 50076.  It would be related if I was adding the setters; these are by definition lossy, so they would belong in a datetime API better than in GDate.

However, I think adding the getters to GDate is not that much controversial.
Comment 4 Paolo Bonzini 2011-01-20 17:25:56 UTC
ping?
Comment 5 Philip Withnall 2017-11-16 10:53:47 UTC
GDateTime mostly replaces GDate, so I think this can be considered implemented by g_date_time_to_timeval() and g_date_time_to_unix(). If someone comes up with a compelling argument for adding support for them to GDate, the bug can be reopened and the patch resurrected.