Skip to main content

A lightweight Python wrapper for datetime

Project description

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

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

dt_better-0.1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

dt_better-0.1.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file dt_better-0.1.1.tar.gz.

File metadata

  • Download URL: dt_better-0.1.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for dt_better-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c5725653f4d92b5c7b92dd493b650dc912ec84ebe177ff6d03bd7e3d5584a7c1
MD5 a8744870b8b6f896bb7f6b347758244a
BLAKE2b-256 57e9478063d6ab00c15d6944dad2cf517807d2100d11afc89fe3f210511996d3

See more details on using hashes here.

File details

Details for the file dt_better-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dt_better-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for dt_better-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a466139c24761c2a638fbf29729e895c6939cf2235a37f682187cad2f95a3508
MD5 bb5212d993f59c0007ec9cacc8cbd8d9
BLAKE2b-256 3919ef23d27f066a54bf147d2c2709e962e3fa12069c8e7b3ffb2d7096bb8199

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