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.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

relativedate-1.3.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: relativedate-1.3.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.tar.gz
Algorithm Hash digest
SHA256 8e947f99f6230abebc54f4e16a20841d694194457db304f01bd402ec0808d6f2
MD5 01d2394bd998e4670f6b121996ae6dfd
BLAKE2b-256 2036b75810e9d3206801d958f51ef05c65110c0af43b9a93466e309225e8307e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for relativedate-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5165f4dc351aef20bcc4f299b3f80c9321af9c37672f6c3cb037933a50390bd8
MD5 450d6c623ce9814c9b84d72916c9388b
BLAKE2b-256 ccfaba4c627e9721bb60b44d344e6050c4f6a83accda990bde7848e07bbad24e

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