summaryrefslogtreecommitdiff
path: root/libsoup/soup-date.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/soup-date.c')
-rw-r--r--libsoup/soup-date.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsoup/soup-date.c b/libsoup/soup-date.c
index 349e8cc0..9602d1f6 100644
--- a/libsoup/soup-date.c
+++ b/libsoup/soup-date.c
@@ -722,6 +722,7 @@ soup_date_to_time_t (SoupDate *date)
return (time_t) (sizeof (time_t) == 4 ? MIN(seconds, G_MAXINT32) : seconds);
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/**
* soup_date_to_timeval:
* @date: a #SoupDate
@@ -729,6 +730,8 @@ soup_date_to_time_t (SoupDate *date)
*
* Converts @date to a #GTimeVal.
*
+ * Deprecated: Do not use #GTimeVal, as it's not Y2038-safe.
+ *
* Since: 2.24
*/
void
@@ -743,6 +746,7 @@ soup_date_to_timeval (SoupDate *date, GTimeVal *time)
time->tv_sec = ((((time->tv_sec * 24) + date->hour) * 60) + date->minute) * 60 + date->second;
time->tv_usec = 0;
}
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* soup_date_is_past: