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
GitHub: https://github.com/jmiante/relativedate
PyPI: https://pypi.org/project/relativedate
Site: https://jmiante.github.io/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.2.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

relativedate-1.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for relativedate-1.2.0.tar.gz
Algorithm Hash digest
SHA256 0f7d8b681f2d7c51bc95c7880fbe0539916effb756e906d993f37312b295190f
MD5 b6eacf4ea5b6a06ecddc4a2c9cdf9b6b
BLAKE2b-256 d5e285dcc57f272ef3ebff527d075fac2efec9fa1135acd4518200a14b83a35b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for relativedate-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59166b38102539d26edd2c1429320f8afff74652ca01bda797a30dbea34fb7d4
MD5 a9e510c3484d773ffb91ae25fcbcdcf6
BLAKE2b-256 f257c206978050a6153d55b82e489a5fd85e1304071eda7e697465df9b78fb0d

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