mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-05-31 08:31:41 +05:30
Python: add get_unix_epoch_seconds.py
This commit is contained in:
9
python-programming/oneliners/get_unix_epoch_seconds.py
Normal file
9
python-programming/oneliners/get_unix_epoch_seconds.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
# get_unix_epoch_seconds.py
|
||||||
|
#
|
||||||
|
# Author: Intel A80486DX2-66
|
||||||
|
# License: Unlicense
|
||||||
|
|
||||||
|
print(__import__("math").floor(__import__("datetime").datetime.now().\
|
||||||
|
timestamp()))
|
Reference in New Issue
Block a user