Skip to main content

Python bindings to the Jiff datetime library

Project description

pyjiff

Python bindings for Jiff, a date-time library for Rust that encourages you to jump into the pit of success.

WIP, not ready for use, although all the Jiff readme examples work :) Come back in a week.

Usage

from jiff import Zoned, Timestamp, Span

ts = Timestamp.from_string("2024-07-11T01:14:00Z")
span = Span()
span.months = 1
span.hours = 2
zoned = ts.intz("America/New_York") + span
assert str(zoned) == "2024-08-10T23:14:00-04:00[America/New_York]" 

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

jiff-0.2.0.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distributions

jiff-0.2.0-pp310-pypy310_pp73-win_amd64.whl (378.9 kB view hashes)

Uploaded PyPy Windows x86-64

jiff-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (448.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

jiff-0.2.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (519.9 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

jiff-0.2.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl (400.1 kB view hashes)

Uploaded PyPy macOS 11.0+ ARM64

jiff-0.2.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl (402.4 kB view hashes)

Uploaded PyPy macOS 10.15+ x86-64

jiff-0.2.0-cp312-none-win_amd64.whl (380.7 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

jiff-0.2.0-cp312-none-win32.whl (411.0 kB view hashes)

Uploaded CPython 3.12 Windows x86

jiff-0.2.0-cp312-cp312-musllinux_1_2_x86_64.whl (509.2 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

jiff-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (447.6 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

jiff-0.2.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (518.5 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

jiff-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (399.9 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

jiff-0.2.0-cp312-cp312-macosx_10_9_x86_64.whl (401.2 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

jiff-0.2.0-cp311-none-win_amd64.whl (378.8 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

jiff-0.2.0-cp311-none-win32.whl (410.6 kB view hashes)

Uploaded CPython 3.11 Windows x86

jiff-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl (509.0 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

jiff-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (447.7 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

jiff-0.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (519.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

jiff-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (399.8 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

jiff-0.2.0-cp311-cp311-macosx_10_9_x86_64.whl (402.3 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

jiff-0.2.0-cp310-none-win_amd64.whl (378.8 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

jiff-0.2.0-cp310-none-win32.whl (410.6 kB view hashes)

Uploaded CPython 3.10 Windows x86

jiff-0.2.0-cp310-cp310-musllinux_1_2_x86_64.whl (509.0 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

jiff-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (447.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

jiff-0.2.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (519.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

jiff-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (399.7 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

jiff-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl (402.3 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

Supported by

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