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
-
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
datetimeobject.
-
Date and Time Arithmetic:
- Convenient methods for adding and subtracting time, days, months, and years.
- Calculation of the difference between two dates.
-
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.
-
Timezone Handling:
- Support for working with different timezones.
- Conversion of time between different timezones.
-
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.")
Metadata
Release files for time-app 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| time-app-1.3.tar.gz | 631.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| time_app-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / time-app-1.3.tar.gz
| Download URL | time-app-1.3.tar.gz |
|---|---|
| Size | 631.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7594e03d33f6c185e14fd6a9acc458bcd533c7c0788d3386f8cac20356dfcac3
|
|
BLAKE2b-256 checksum How to use checksums |
66ee295e6c6591060a9d967e723305682be6fb5cb20644fcb4121e788f6dcce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / time_app-1.3-py3-none-any.whl
| Download URL | time_app-1.3-py3-none-any.whl |
|---|---|
| Size | 635.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1e6e712a3734e9f9fd758275b1dee786c2156b2e9f2999907d92827d59b1fac
|
|
BLAKE2b-256 checksum How to use checksums |
dbbef47e1e851c521ebf1637859ef96b083f7855055bbf23590dedac338826f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|