From 59a9721afaa8d64011cbf0f1042272e26dbe9de8 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Fri, 28 Jun 2024 14:02:34 +0300 Subject: [PATCH] Python: add get_unix_epoch_seconds.py --- python-programming/oneliners/get_unix_epoch_seconds.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 python-programming/oneliners/get_unix_epoch_seconds.py diff --git a/python-programming/oneliners/get_unix_epoch_seconds.py b/python-programming/oneliners/get_unix_epoch_seconds.py new file mode 100644 index 0000000..a2a1788 --- /dev/null +++ b/python-programming/oneliners/get_unix_epoch_seconds.py @@ -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()))