mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-07 22:20:05 +02:00
gtypes: Deprecate GTimeVal in favour of guint64 or GDateTime
GTimeVal is subject to the year 2038 problem, since its `tv_sec` field is a `glong`, which is 32 bits on 32-bit platforms. Use `guint64` to represent microsecond-precision time since the Unix epoch; or use `GDateTime` for full date/time representation. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1438
This commit is contained in:
@@ -123,6 +123,8 @@
|
||||
* removed from a future version of GLib. A consequence of using `glong` for
|
||||
* `tv_sec` is that on 32-bit systems `GTimeVal` is subject to the year 2038
|
||||
* problem.
|
||||
*
|
||||
* Deprecated: 2.62: Use #GDateTime or #guint64 instead.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user