GDateTime: Support parsing ISO 8601 strings

This supports a subset of ISO 8601 since that is a commonly used standard for
storing date and time information. We support only ISO 8601 strings that contain
full date and time information as this would otherwise not map to GDateTime.
This subset includes all of RFC 3339 which is commonly used on the Internet and
the week and ordinal day formats as these are supported in the GDateTime APIs.

(Minor modification by Philip Withnall to change API versions from 2.54
to 2.56.)

https://bugzilla.gnome.org/show_bug.cgi?id=753459
This commit is contained in:
Robert Ancell
2016-08-25 11:53:54 +12:00
committed by Philip Withnall
parent d5933142c8
commit 491f835c17
4 changed files with 652 additions and 1 deletions

View File

@@ -1667,6 +1667,7 @@ g_date_time_new_from_unix_utc
<SUBSECTION>
g_date_time_new_from_timeval_local
g_date_time_new_from_timeval_utc
g_date_time_new_from_iso8601
<SUBSECTION>
g_date_time_new