>>> mtime
1634725796.7212281
>>> from datetime import datetime
>>> datetime.fromtimestamp(mtime)
datetime.datetime(2021, 10, 20, 15, 59, 56, 721228)
>>>
I want date-time string returned exactly in the format Date: Wed, 20 Oct 2021 15:59:56 GMT
which is the format a server sends when the page was last modified.
https://serverfault.com/questions/168345/sending-content-message-body-along-with-304-not-modified-header