From a09f506ff3ed6a47eb7b3cb045164defd6b8d198 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 12 Feb 2024 23:51:36 -0500 Subject: Add Delivery.info.time_str_epoch member to store Unix epoch as a string. --- include/deliverable.h | 7 ++++--- include/omc.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/deliverable.h b/include/deliverable.h index d0186d7..ed9d12a 100644 --- a/include/deliverable.h +++ b/include/deliverable.h @@ -86,9 +86,10 @@ struct Delivery { * \brief Release information (name & datetime) */ struct Info { - char *release_name; ///< The fully combined release string - struct tm *time_info; - time_t time_now; ///< Time stamp for when OMC execution started + char *release_name; ///< The fully combined release string + struct tm *time_info; ///< Delivery time structure + time_t time_now; ///< Time stamp for when OMC execution started + char *time_str_epoch; ///< String representation of Unix epoch } info; /*! \struct Conda diff --git a/include/omc.h b/include/omc.h index 36ab676..21ffd0a 100644 --- a/include/omc.h +++ b/include/omc.h @@ -13,6 +13,7 @@ #define OMC_BUFSIZ 8192 #define OMC_NAME_MAX 255 #define OMC_DIRSTACK_MAX 1024 +#define OMC_TIME_STR_MAX 128 #define HTTP_ERROR(X) X >= 400 #include "config.h" -- cgit