Streamlit component that returns the user browser IANA timezone
Project description
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))}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit_tz-0.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_tz-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 833c5bfc17615aa271d9aaf833bed60bfeb40f3c72dc919af3b8cdc361728de2 |
|
MD5 | 3134ddb7a1f7189bfb760c0c88c3bc70 |
|
BLAKE2b-256 | c5551a33c4a2dda5b2c6aeb90d835c820fd567b159d935667b07e1008d58ce2e |