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

Uploaded Source

Built Distribution

relativedate-1.3.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: relativedate-1.3.2.tar.gz
  • Upload date:
  • Size: 3.4 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.2.tar.gz
Algorithm Hash digest
SHA256 1cd710d9e0093a1cdbafe7940d8b1b721870ed5b3a766858cd90bd023bc8e21e
MD5 2dacb4dcde883b1eb4c472e0704a5d29
BLAKE2b-256 6d8e5ed858f620b219dd189ac8b76ffd1435cbb2e44ea891a618b5a4ec981a6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for relativedate-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 433b5de92953df647d15979c96699fd4e437805171b36b7a71a8cbb34a7b974d
MD5 96d937a963716b3db0fe376f71cb3de7
BLAKE2b-256 fd07f31425f41742be962403dc7ec8d31420b296a1919a9e3cf796bed0f68c03

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