Created
March 21, 2020 21:18
-
-
Save nm17/78a73c1e6eb9d5b86e0c19c9d622e6b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import httpx | |
| def convert_ver(): | |
| diff = datetime.timedelta(days=10389, seconds=71340) | |
| ver = int(httpx.post("http://sgo.cit73.ru/webapi/auth/getdata").json()["ver"]) | |
| return (datetime.datetime.fromtimestamp(ver) + diff).replace(tzinfo=pytz.FixedOffset(240)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment