natural command stuff

This commit is contained in:
jude
2020-09-26 22:23:41 +01:00
parent f13853d445
commit 8a0588b04e
3 changed files with 21 additions and 7 deletions

2
dp.py
View File

@ -10,4 +10,4 @@ dt = dateparser.parse(sys.argv[1], settings={
'PREFER_DATES_FROM': 'future',
})
print(dt.timestamp() if dt is not None else -1)
sys.stdout.write(str(int(dt.timestamp()) if dt is not None else -1))