diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-12 23:51:36 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-12 23:51:36 -0500 |
commit | a09f506ff3ed6a47eb7b3cb045164defd6b8d198 (patch) | |
tree | 191edf8dd4ceb479bcce7da7f0c9d983a78a417f /include | |
parent | ca6fb164907c3fb530f049864d6a986f85b22cdf (diff) | |
download | stasis-a09f506ff3ed6a47eb7b3cb045164defd6b8d198.tar.gz |
Add Delivery.info.time_str_epoch member to store Unix epoch as a string.
Diffstat (limited to 'include')
-rw-r--r-- | include/deliverable.h | 7 | ||||
-rw-r--r-- | include/omc.h | 1 |
2 files changed, 5 insertions, 3 deletions
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" |