diff options
author | Guy Harris <gharris@sonic.net> | 2023-09-11 02:21:59 -0700 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2023-09-11 09:25:00 +0000 |
commit | 143533dfe016228a039bf86371245c782b28f63e (patch) | |
tree | 5674485c4d6e635132d6030176a5e4e422e2ff0a /ConfigureChecks.cmake | |
parent | 4b528c8ba7ce0a3089e140b923c6a24ae6b9bc33 (diff) |
Add a routine to format an nstime as an ISO 8601-style date/time.
This replaces code in both absolute_time_string(), in capinfos, and
set_abs_ymd_time(), in libwireshark. Like absolute_time_string(), it
reports, in the formatted string, an error if the seconds value in the
nstime can't be converted to a struct tm (looking at *you*, Visual
Studio C library),
Have that routine handle all time precision values from 0 (seconds) to 9
(nanoseconds).
Add a ws_gmtime_r(), matching ws_localtime_r(), for use by that routine.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 8f7c4b59fc..ace963526c 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -85,6 +85,7 @@ check_symbol_exists("clock_gettime" "time.h" HAVE_CLOCK_GETTIME) check_symbol_exists("timespec_get" "time.h" HAVE_TIMESPEC_GET) if(NOT MSVC) check_symbol_exists("localtime_r" "time.h" HAVE_LOCALTIME_R) + check_symbol_exists("gmtime_r" "time.h" HAVE_GMTIME_R) check_symbol_exists("timegm" "time.h" HAVE_TIMEGM) check_symbol_exists("tzset" "time.h" HAVE_TZSET) check_symbol_exists("tzname" "time.h" HAVE_TZNAME) |