Adde files/receipes.py for code snippet storage. (0.21)

This commit is contained in:
Johannes Findeisen 2023-02-23 23:12:48 +01:00
commit ac99346ac9
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
etc.local/
log/*.log
log/*.log.*
tmp.py
# ---> Python
# Byte-compiled / optimized / DLL files

4
files/receipes.py Normal file
View file

@ -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()