natural command stuff

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

No files matched your search

+1 -1
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))