This will greatly help with the transition to GDateTime. In the future, we can propose these APIs to GLib itself.