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. For example:

""" your_code.py """
from datetime import datetime
from temporal import 

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

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

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.2.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

temporal_lib-0.0.2-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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