dt-better
a pretty lightweight datetime wrapper.
to install this, run pip install dt-better in your terminal. pip comes with most modern python versions.
examples:
import dt_better as dt
date = dt.current_date()
print(date)
import dt_better as dt
tomorows_date = dt.tomorrow()
print("Tomorrows Date is:", tomorrows_date)
current_date(): this returns the current date
current_time(): this returns the current time
current_time_without_seconds(): this returns the current time without seconds
current_month(): this returns the current month as a string
current_month_number(): this returns the current month but as a number
current_day_of_month(): this shows what day of the month you are on as a number
current_year(): this returns the current year
current_day_of_week(): this returns the current day of the week, monday tuesday wednesday thursday or friday
current_hour(): this returns the current hour
current_minute(): this returns the current minute
current_second(): this returns the current second
yesterday(): this returns yesterdays date
tomorrow(): this returns tomorrows date
Metadata
Release files for dt-better 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dt_better-0.1.1.tar.gz | 2.0 kB | Without provenance | Details for dt_better-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dt_better-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dt_better-0.1.1-py3-none-any.whl |
Total release size: 4.1 kB
Release files / dt_better-0.1.1.tar.gz
| Download URL | dt_better-0.1.1.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5725653f4d92b5c7b92dd493b650dc912ec84ebe177ff6d03bd7e3d5584a7c1
|
|
BLAKE2b-256 checksum How to use checksums |
57e9478063d6ab00c15d6944dad2cf517807d2100d11afc89fe3f210511996d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / dt_better-0.1.1-py3-none-any.whl
| Download URL | dt_better-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a466139c24761c2a638fbf29729e895c6939cf2235a37f682187cad2f95a3508
|
|
BLAKE2b-256 checksum How to use checksums |
3919ef23d27f066a54bf147d2c2709e962e3fa12069c8e7b3ffb2d7096bb8199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for dt-better 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.