Skip to main content

Pacote Python para tabalhar com Datas Relativas

Project description

Python Package: relativedate

Descrição:

Biblioteca Python relacionada a datas, onde é criado um objeto "RelativeDate" que possui o atributo datetime, onde é retornado um objeto datetime.

O objetivo desta biblioteca é facilitar a manipulação de datas relativas e calculos com datas, em sua primeira versão estamos trabalhando apenas com a data relativa baseado em mês, onde pode se passar o argumento de meses (positivo e negativo) e retornará a data relativa ao mês desejado


Links
Documentação: https://jmiante.github.io/relativedate
GitHub: https://github.com/jmiante/relativedate
PyPI (last version): https://pypi.org/project/relativedate

Instalação:

pip install relativedate



Exemplo Utilização:

from datetime import datetime
from relativedate import RelativeDate

dt = datetime(year=2023, month=5, day=7)
rd = RelativeDate(dt)
print(rd)

rd.addMonth(-9)

print(rd)


RETURN:
>> 2023-05-07 00:00:00
>> 2022-08-07 00:00:00



Doação:

Ajude o Projeto a continuar, qualquer doação é bem vinda

CHAVE PIX: d51024a6-4320-4cb6-9241-b0a4d165dfd2
PIX Copia e Cola: Link
QRCODE PIX:


Nome: Jonathas Henrique Miante - Banco: PicPay



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

relativedate-1.3.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

relativedate-1.3.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file relativedate-1.3.0.tar.gz.

File metadata

  • Download URL: relativedate-1.3.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for relativedate-1.3.0.tar.gz
Algorithm Hash digest
SHA256 9e379c45824b36985470eee240eae583f4017dec1c3be477f78b40b0d2a66384
MD5 d33eaf94f7516fa92bcbfecad5491dd8
BLAKE2b-256 9607f1f2f334470ce8d03d926d358fcd45d2522b1561bf73306b9046a95f57a3

See more details on using hashes here.

File details

Details for the file relativedate-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for relativedate-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd1eaf2bc55d998a6660c56e2ff8fa77931005f1e976ad5b10f39e60d413727f
MD5 23ad01c7443d3ed440c23425caad1d25
BLAKE2b-256 7574ede2534e162d1b4e046a0d77b6b953f6340107cd796e727e50ea879b18d6

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