streamlit-tz
Streamlit component that returns the user browser IANA timezone
Installation instructions
pip install streamlit-tz
Usage instructions
from datetime import datetime, UTC
from zoneinfo import ZoneInfo
import streamlit as st
from streamlit_tz import streamlit_tz
tz = streamlit_tz()
now = datetime.now(UTC)
st.write(f"Time UTC: {now}")
st.write(f"Time in {tz}: {now.astimezone(ZoneInfo(tz))}")
Metadata
Release files for streamlit-tz 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| streamlit_tz-0.1.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_tz-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / streamlit_tz-0.1.1.tar.gz
| Download URL | streamlit_tz-0.1.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea813a46a7764d63c23e143d5210d306faa9c8aa89a7096d032c22f1aa90b40e
|
|
BLAKE2b-256 checksum How to use checksums |
ef976396f4f2f69d142d8c86f218489f4a916ba33c5ac004c132cc0b6333ab64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / streamlit_tz-0.1.1-py3-none-any.whl
| Download URL | streamlit_tz-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef3f7ccefd73043c605d5c6054a7ea794c449a33c0aa56062340434738de2415
|
|
BLAKE2b-256 checksum How to use checksums |
f8017cb8aa4a3c3d042ac18436520dac17d99cb4622b7f1061f4ffe3eea31459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|