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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_tz-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3f7ccefd73043c605d5c6054a7ea794c449a33c0aa56062340434738de2415 |
|
MD5 | 8a3f485e1062b1998486b249ad277f47 |
|
BLAKE2b-256 | f8017cb8aa4a3c3d042ac18436520dac17d99cb4622b7f1061f4ffe3eea31459 |