src/storage/s3/storage.c
/***********************************************************************************************************************************
Format ISO-8601 date/time for authentication
***********************************************************************************************************************************/
Format ISO-8601 date/time for authentication
Format ISO - 8601 date / time for authentication
static String *
storageS3DateTime(time_t authTime)
{
    FUNCTION_TEST_BEGIN();
        FUNCTION_TEST_PARAM(TIME, authTime);
    FUNCTION_TEST_END();
    char buffer[ISO_8601_DATE_TIME_SIZE + 1];
    THROW_ON_SYS_ERROR(
        strftime(buffer, sizeof(buffer), "%Y%m%dT%H%M%SZ", gmtime(&authTime)) != ISO_8601_DATE_TIME_SIZE, AssertError,
        "unable to format date");
    FUNCTION_TEST_RETURN(strNew(buffer));
}
static String * storageS3DateTime ( time_t authTime ) { FUNCTION_TEST_BEGIN ( ) ; FUNCTION_TEST_PARAM ( TIME , authTime ) ; FUNCTION_TEST_END ( ) ; char buffer [ ISO_8601_DATE_TIME_SIZE + 1 ] ; THROW_ON_SYS_ERROR ( strftime ( buffer , sizeof ( buffer ) , " " , gmtime ( & authTime ) ) != ISO_8601_DATE_TIME_SIZE , AssertError , " " ) ; FUNCTION_TEST_RETURN ( strNew ( buffer ) ) ; }
Format ISO-8601 date/time for authentication
Format ISO - 8601 date / time for authentication