A helper library to convert dates between timezone using emojiis
Project description
Emojizones
Emojizones helps you convert one datetime in one time zone to another, using the emojiis you are used to from your iPhone. Never have time zone conversion been this easy!
Installation
pip install emojizones
Example usage
from emojizones import convert
from datetime import datetime
# Here we have a naive datetime without a time zone
from_time = datetime(2020, 3, 7, 0, 0, 0)
# Now we use the emojizones.convert-method
to_time = convert(
from_time,
"🗻", # Mount Fuji, Japan --> Asia/Tokyo
"🗽" # Statue of Libery, New York --> America/New_York
)
print(to_time)
# 2020-03-06 10:00:00
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emojizones-0.1.1.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for emojizones-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8412f9134c521f192573c7fa90f3c1bc88bc5625a2c86dd15444e36580a8ced2 |
|
MD5 | 3528a9cc29d61f4cfc208c9238912906 |
|
BLAKE2b-256 | b479ec5c816baef380d22f8200a55daff44e8a7b571e8117dd75c6974169f962 |