Skip to main content

A library for working with datetime and other temporal concepts.

Project description

temporal-lib

A library for working with datetime and other temporal concepts.

Explanation

Originally, I created a "Temporal" companion App for the Frappe Framework. Over time, more of my non-ERPNext Python projects required or benefitted from the same helper functions and classes.

So I'm splitting the project:

  • All generic, reusable Python code will be stored in this package, and synchronized to PyPi.org.
  • The remaining Frappe-specific code will remain on GitHub, and begin to reference this package as a requirement.

Installation

pip3 install temporal-lib

Usage

The library's namespace is temporal_lib. For example:

""" your_code.py """
from datetime import datetime
import temporal_lib

today_date = datetime.now().date()
today_iso_string = temporal_lib.date_to_iso_string(today)
print(today_iso_string)

Standards

  • All date strings are expected to be ISO-8601 extended. Example: 2023-11-29

Links

  • To the temporal-lib package on PyPi here.
  • A helpful Wikipedia article about ISO-8601.
  • To my Rust-based file-8601 project here!
  • (Deprecated) My original Python file-8601 project here

Further Reading

Attributions

Hourglass image on GitLab repository by The Oxygen Team, KDE; - KDE github;, LGPL, https://commons.wikimedia.org/w/index.php?curid=18609110

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

temporal-lib-0.0.4.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

temporal_lib-0.0.4-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file temporal-lib-0.0.4.tar.gz.

File metadata

  • Download URL: temporal-lib-0.0.4.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for temporal-lib-0.0.4.tar.gz
Algorithm Hash digest
SHA256 797b2a5e20dd0aa1c6237cd455b9f25ec76c5d12361abf05992803a0d3272c26
MD5 36c3a8aea48ede8cf170aa09fea928cf
BLAKE2b-256 ce0a04321768c99c7c55e556cb0fa44364e5a2cfb61804f2635fe42eccce5bf2

See more details on using hashes here.

File details

Details for the file temporal_lib-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: temporal_lib-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for temporal_lib-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 51bccad460b85063189dfc522c644348ca5f7a40634b3ef683cc72f354f564a9
MD5 7fce63d542ef5cde72b6713737aa481c
BLAKE2b-256 182846fb447236df0c00120bae1df8dbd1ce8674467fefd0f0a99ff8b091eb1f

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