Skip to main content

BridgeTime: Rust-powered Day.js/Moment-style datetime toolkit

Project description

bridgetime (Python)

BridgeTime is a Rust-powered datetime toolkit with a Day.js/Moment-style API exposed to Python.

Install

pip install bridgetime

Quickstart

from bridgetime import BridgeTime, supported_units

now = BridgeTime.now("UTC")
print(now.to_iso())

ny = now.to_timezone("America/New_York")
print(ny.format("YYYY-MM-DD HH:mm:ss"))

future = now.add(2, "week").start_of("day")
print(future.to_iso())

print(supported_units())

Build Locally

cd bindings/python/bridgetime
maturin develop

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

bridgetime-0.1.0.tar.gz (75.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

bridgetime-0.1.0-cp38-abi3-win_amd64.whl (328.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

bridgetime-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (475.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

bridgetime-0.1.0-cp38-abi3-macosx_11_0_arm64.whl (400.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

bridgetime-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl (407.3 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file bridgetime-0.1.0.tar.gz.

File metadata

  • Download URL: bridgetime-0.1.0.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bridgetime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7146d04b7d037780653410384bfd5a4f607cfb33f316e9dcda01a06e519e2606
MD5 faa8f1074afdbe84f0eba0ba912fde97
BLAKE2b-256 9cee9cd0f8cf24befac5e821d04ee17a8ec8944e29109e63caacc9430d21a218

See more details on using hashes here.

File details

Details for the file bridgetime-0.1.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: bridgetime-0.1.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 328.5 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bridgetime-0.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 68da68c4934437bd0abaf12bdf55889f014aada3dd6d68a4b1205553f6509be0
MD5 a1a5dae23b2e5419174b6e22a67f3830
BLAKE2b-256 ff24da280da62a90a8ebc07c0e62d076e4523fb4f91a0a2bd1df11337dde1b10

See more details on using hashes here.

File details

Details for the file bridgetime-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bridgetime-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc6a54fe10777c1ba07b1ca39d17e1a37a53290a875bc1f91dc256714ed22875
MD5 a05a1395818f3e91f527f5aac93e3ca9
BLAKE2b-256 fd569881d7cd96858fe796b76863fbc42ed9cdccf5f55885744662acbf1bc392

See more details on using hashes here.

File details

Details for the file bridgetime-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bridgetime-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2af040eb908ec243244c06f9765490a113620456df4390199eda070889edd56c
MD5 c6dd2384cfc9dab9aabe3b9db9d605dc
BLAKE2b-256 af3c211b2be2a2fcad6837eab9c6239fe561824ed8926f59868e954ae1443f55

See more details on using hashes here.

File details

Details for the file bridgetime-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bridgetime-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e344a29b8ab0b0f0042bc08cea3e026102656c6d595b1c5bc7df9b1e138f613f
MD5 4cd5d50ff57933c223f5973d63d742ae
BLAKE2b-256 a487a12d33a8602d658ec6ab1226dac88f04a694629ee96b4ef57930ff7130ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page