diff --git a/.gitignore b/.gitignore index c790066..a7f2154 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ etc.local/ log/*.log log/*.log.* +tmp.py # ---> Python # Byte-compiled / optimized / DLL files diff --git a/files/receipes.py b/files/receipes.py new file mode 100644 index 0000000..a0a5a97 --- /dev/null +++ b/files/receipes.py @@ -0,0 +1,4 @@ +# get system timezone name +# https://stackoverflow.com/questions/1111056/get-time-zone-information-of-the-system-in-python +import datetime +tz_string = datetime.datetime.now(datetime.timezone.utc).astimezone().tzname()