GNOME Bugzilla – Bug 615900
[PATCH] add g_date_get_time_t and g_date_get_time_val
Last modified: 2017-11-16 10:53:47 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.
Created attachment 158854 [details] [review] patch
See bug 50076.
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.
ping?
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.