Skip to main content

A tool library created by jaanca with help functions for date and time management and moving dates between time days by UTC.

Project description

jaanca public libraries

Package version Python


A tool library created by jaanca

  • Python library: A tool library created by jaanca with help functions for date and time management and moving dates between time days by UTC.

Source code | Package (PyPI) | Samples


library installation

pip install jaanca-datetime --upgrade

Example of use

from jaanca_datetime import DateTimeHelper, App, TimeZonesPytz

if __name__=="__main__":
    DateTimeHelper.print_console_timezones_pytz()
    print(f"date now,is_format_string=False=datetime format: {DateTimeHelper.get_datetime_now(App.Time.POSTGRESQL_FORMAT_DATE,is_format_string=False)}")
    print(f"date now,is_format_string=True: {DateTimeHelper.get_datetime_now(App.Time.POSTGRESQL_FORMAT_DATE,is_format_string=True)}")
    print(f"date timezone convert UTC to Bogotá,is_format_string=False=datetime format: {DateTimeHelper.get_datetime_now_to_another_location(App.Time.STANDARD_FORMAT_DATE,TimeZonesPytz.US.AZURE_DEFAULT,TimeZonesPytz.America.BOGOTA,is_format_string=False)}")
    print(f"date timezone convert UTC to Bogotá,is_format_string=True: {DateTimeHelper.get_datetime_now_to_another_location(App.Time.STANDARD_FORMAT_DATE,TimeZonesPytz.US.AZURE_DEFAULT,TimeZonesPytz.America.BOGOTA,is_format_string=True)}")

# #output
# date now,is_format_string=False=datetime format: 2024-05-24 15:03:04.424853
# date now,is_format_string=True: 2024-05-24 15:03:04
# date timezone convert UTC to Bogotá,is_format_string=False=datetime format: 2024-05-24 10:03:04.425853-05:00
# date timezone convert UTC to Bogotá,is_format_string=True: 2024-05-24 10:03:04
 

Semantic Versioning

jaanca-datetime < MAJOR >.< MINOR >.< PATCH >

  • MAJOR: version when you make incompatible API changes
  • MINOR: version when you add functionality in a backwards compatible manner
  • PATCH: version when you make backwards compatible bug fixes

Definitions for releasing versions

  • https://peps.python.org/pep-0440/

    • X.YaN (Alpha release): Identify and fix early-stage bugs. Not suitable for production use.
    • X.YbN (Beta release): Stabilize and refine features. Address reported bugs. Prepare for official release.
    • X.YrcN (Release candidate): Final version before official release. Assumes all major features are complete and stable. Recommended for testing in non-critical environments.
    • X.Y (Final release/Stable/Production): Completed, stable version ready for use in production. Full release for public use.

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Types of changes

  • Added for new features.
  • Changed for changes in existing functionality.
  • Deprecated for soon-to-be removed features.
  • Removed for now removed features.
  • Fixed for any bug fixes.
  • Security in case of vulnerabilities.

[0.0.1rcX] - 2024-05-24

Added

  • First tests using pypi.org in develop environment.

[0.1.0] - 2024-05-24

Added

  • Completion of testing and launch into production.

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

jaanca_datetime-0.1.1rc1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

jaanca_datetime-0.1.1rc1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file jaanca_datetime-0.1.1rc1.tar.gz.

File metadata

  • Download URL: jaanca_datetime-0.1.1rc1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for jaanca_datetime-0.1.1rc1.tar.gz
Algorithm Hash digest
SHA256 8f35ecf0ba2ef3284e50f2727d229018da84b53fd4455a0d94165e6f02752e1a
MD5 e6dbe3dd3b1d2ae7147ab792bc25c282
BLAKE2b-256 4ad495352d09804b45cd2ec49c27c361e14decf9a8e6f8399c83094b91144583

See more details on using hashes here.

File details

Details for the file jaanca_datetime-0.1.1rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for jaanca_datetime-0.1.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 c20875b1783a440369745b3f11fc4edf90c4cc24b7d4f54f8930d3581a69cf50
MD5 0ec9510eab094e31139696e7e6ef202d
BLAKE2b-256 134ce686090793c35b3c54d6278f78aed047b7af4ecd490015f3c0016810572e

See more details on using hashes here.

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