Skip to main content

No project description provided

Project description

Library time_app

Description

time_app is a convenient library for working with date and time in the Python programming language. It provides simple and powerful tools for managing temporal data, making operations such as formatting, parsing, comparison, and arithmetic with dates and times straightforward.

Key Features

  1. Formatting and Parsing Date/Time:

    • Conversion of date and time to a string based on a specified format.
    • Parsing a string with date/time into a Python datetime object.
  2. Date and Time Arithmetic:

    • Convenient methods for adding and subtracting time, days, months, and years.
    • Calculation of the difference between two dates.
  3. Comparison of Dates and Times:

    • Comparison of dates and times for equality, greater/less than.
    • Checking if the current date/time is within a specified time range.
  4. Timezone Handling:

    • Support for working with different timezones.
    • Conversion of time between different timezones.
  5. Managing Time Intervals:

    • Handling time intervals.
    • Support for periodic tasks and event scheduling.

Usage Example

from time_app import TimeApp

# Creating an object with the current date and time
now = TimeApp.now()

# Formatting the date into a string
formatted_date = now.format("%Y-%m-%d %H:%M:%S")
print(f"Formatted date: {formatted_date}")

# Date arithmetic
future_date = now + TimeApp.timedelta(days=7)
print(f"Date in 7 days: {future_date}")

# Checking if the current date is later than the specified date
if now > future_date:
    print("The current date is behind the future date.")
else:
    print("The current date is ahead of the future date.")

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

time-app-1.3.tar.gz (631.7 kB view details)

Uploaded Source

Built Distribution

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

time_app-1.3-py3-none-any.whl (635.5 kB view details)

Uploaded Python 3

File details

Details for the file time-app-1.3.tar.gz.

File metadata

  • Download URL: time-app-1.3.tar.gz
  • Upload date:
  • Size: 631.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for time-app-1.3.tar.gz
Algorithm Hash digest
SHA256 7594e03d33f6c185e14fd6a9acc458bcd533c7c0788d3386f8cac20356dfcac3
MD5 6f4f4ed032538955020c821967f181e6
BLAKE2b-256 66ee295e6c6591060a9d967e723305682be6fb5cb20644fcb4121e788f6dcce5

See more details on using hashes here.

File details

Details for the file time_app-1.3-py3-none-any.whl.

File metadata

  • Download URL: time_app-1.3-py3-none-any.whl
  • Upload date:
  • Size: 635.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for time_app-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1e6e712a3734e9f9fd758275b1dee786c2156b2e9f2999907d92827d59b1fac
MD5 256b5381bda872760a66d65ce2ba3f3f
BLAKE2b-256 dbbef47e1e851c521ebf1637859ef96b083f7855055bbf23590dedac338826f1

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