Port date/time functions to GDateTime

These are supposedly portable to more platforms than POSIX, effectively
putting the burden of checking whether a platform supports it onto GLib,
instead of having Chimara shoulder it.