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

Uploaded Source

Built Distribution

relativedate-1.3.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: relativedate-1.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 4c72a8a9edd1c56239da835e478dcf961b419dd38f095c81800978d9672a1740
MD5 54cf9adef18fdf1544a71933b77fb1dd
BLAKE2b-256 8bd4da7c9da70fc18e499c3b86ee2857aa7970dbf4f1fa3ac63747702b57d2a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for relativedate-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9532faaf7cd710b11865cfb75dd78262d4cce73d916f86b49210c12e340434cf
MD5 da0f4ed9d97d78a54d3a33c769374f6c
BLAKE2b-256 f0f5f93f805951c5e8217b0f9eedb9d32e2d2c73d74e60b384f4a20d7614ecde

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