This package was developed to simplify date manipulation.
Project description
Bonnie Bully
This package was developed to simplify date manipulation.
How to use?
Importing the packages and creating the current day variable for manipulation.
(Importando os pacotes e criando a variavem de dia atual para manipulação.)
from bonniebully import intdate
from datetime import date
current_day = date.today()
print('Current day:', current_day)
One month ahead of the current date with the start date of the month
(Um mês a frente da data atual com a data inicial do mês)
M1 = intdate('MONTH', current_day, 1,'B').getDates()
M1_yearMonth = intdate('MONTH',current_day, 1,'B').getYearMonth()
print('M1_dia:', M1)
print('M1_yearMonth:', M1_yearMonth)
Same day 12 months previous to current date
Mesmo dia 12 meses anteriores a data atual
M12 = intdate('MONTH', current_day, -12,'S').getDates()
M12_yearMonth = intdate('MONTH',current_day, -12,'S').getYearMonth()
print('M1_dia:', M1)
print('M1_yearMonth:', M1_yearMonth)
2 years previous to the current date with the last day of the month
2 anos anterior da data atual com o ultimo dia do mês
Y2 = intdate('YEAR', current_day, -2,'E').getDates()
Y2_yearMonth = intdate('YEAR',current_day, -2,'E').getYearMonth()
2 day previous to the current date but only with the business day
2 dias anteriores à data atual, mas apenas com o dia útil
bday = intdate('BDAY', dia_atual, 3, 'S', "BR", "SP").getDates()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bonniebully-1.0.3.tar.gz
(4.0 kB
view hashes)