I'm trying to retrive xml data from a url using python request.get(url) method. But, all the dates are in epochdate format is there a way to get the date in actual datetime format?
I tried changing the headers = {'accept': 'application/xml') and headers = {'accept': 'application/json') and request content in raw format, json,content text formats
headers = {'accept': 'application/xml;odata=verbose; q=0.9, */*;q=0.8'}
val = requests.get(url, auth=HttpNtlmAuth(username, password),headers=headers, verify=False ,headers= headers)
val.text or val.content or val.json return the same date value in epoch format
how date is in xml:
2010-06-11T11:57:55
request.get(url) returned:
("Modified": "/Date(1276257475000)/")
any help here is appreciated.