Um simples calculador das datas de início e fim do horário de verão brasileiro a partir de um ano especificado.
Instalando
pip install pybrdst
Como usar
Obtendo o início e fim do horário de verão:
from pybrdst.pybrdst import PyBrDST
dst = PyBrDST()
start, end = dst.get_dst(2017)
print(start)
2017-10-15 00:00:00
print(end)
2018-02-18 00:00:00
Obtendo somente o início do horário de verão:
from pybrdst.pybrdst import PyBrDST
dst = PyBrDST()
start = dst.begin_dst(2017)
print(start)
2017-10-15 00:00:00
Obtendo somente o fim do horário de verão:
Observe que a data informada será o fim que ocorreu ou ocorrerá no ano informado e não no ano seguinte
from pybrdst.pybrdst import PyBrDST
dst = PyBrDST()
end = dst.end_dst(2017)
print(end)
2017-02-19 00:00:00
Obtendo a data da Páscoa:
from pybrdst.pybrdst import PyBrDST
dst = PyBrDST()
easter_date = dst.easter_date(2017)
print(easter_date)
2017-04-16 00:00:00
Release files for pybrdst 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pybrdst-0.1.tar.gz | 1.6 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybrdst-0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
| pybrdst-0.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 7.6 kB
Release files / pybrdst-0.1.tar.gz
| Download URL | pybrdst-0.1.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e220fb96a144cd0616841f17db6de03147c7ef06f1e85e2749322d35a36bf755
|
|
BLAKE2b-256 checksum How to use checksums |
6f28debca1a5e1aa70e67fb4e4034570793eae474837c81df672b889b4880902
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pybrdst-0.1-py2.py3-none-any.whl
| Download URL | pybrdst-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8cf4e14ac11a2e8267d422c2b0bb32dbad8f12091d65e52bec3eab0f96b0e8fc
|
|
BLAKE2b-256 checksum How to use checksums |
7ed7c6600ff5c494370803e2ea2cbef6739c387e8c69d083c18844e7f1977bec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pybrdst-0.1-py2-none-any.whl
| Download URL | pybrdst-0.1-py2-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
a9351f51fe89eecf5c780e9540d819dc95b26c67fac67cca32ea05791cc55313
|
|
BLAKE2b-256 checksum How to use checksums |
8881459e8eb11aa84a2b8f33c4b91b523e55816c93fdb58247e79609375357b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |