Hello everyone,
I'm having some issues with the datetime library, specifically it seems a date used by us falls outside of the bounds of what python can handle. Does anyone know of a workaround for this? The error being thrown is:
OverflowError: mktime argument out of range
This is being hit when I attempt to convert the expiration date which is currently a string to a date. The value in that field is
9999-12-31 which appears to be too much for it to handle. This could be a valid and sensible date however rather than 9999-12-31. I've done some googling and unfortunately not turning up anything useful. I'm using robot framework 2.8.7 and python 2.7.3${CURRENT_DATE}= Get Current Date result_format=%Y-%m-%d
${EFFECTIVE_DATE}= Get Json Value ${GET_RESPONSE} /0/effective_date
${EXPIRATION_DATE}= Get Json Value ${GET_RESPONSE} /0/expiration_date
${EFFECTIVE_DATE}= Convert Date ${EFFECTIVE_DATE} result_format=%Y-%m-%d
${EXPIRATION_DATE}= Convert Date ${EXPIRATION_DATE} result_format=%Y-%m-%d
Should Be True '${CURRENT_DATE}'<='${EXPIRATION_DATE}'
Should Be True '${CURRENT_DATE}'>='${EFFECTIVE_DATE}'
Thanks for any help you can provide.