Adde files/receipes.py for code snippet storage. (0.21)
This commit is contained in:
parent
5843f4358f
commit
ac99346ac9
2 changed files with 5 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@
|
||||||
etc.local/
|
etc.local/
|
||||||
log/*.log
|
log/*.log
|
||||||
log/*.log.*
|
log/*.log.*
|
||||||
|
tmp.py
|
||||||
|
|
||||||
# ---> Python
|
# ---> Python
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
|
|
|
||||||
4
files/receipes.py
Normal file
4
files/receipes.py
Normal 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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue