Created
February 29, 2016 14:17
-
-
Save XaviTorello/3b90b44983986a751685 to your computer and use it in GitHub Desktop.
Example code that uses OneYearAgo lib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from one_year_ago.one_year_ago import OneYearAgo, REECalendar | |
from datetime import datetime, timedelta, date | |
#logging.basicConfig(level=logging.DEBUG) | |
logging.basicConfig(level=logging.INFO) | |
dia=datetime(2016,1 ,1) # !is_working, is_holiday | |
#dia=datetime(2016,5,1) # !is_working, is_holiday | |
#dia=datetime(2016,2,29) # is_working, !is_holiday | |
fa_un_any = OneYearAgo(dia) | |
#fa_un_any.get_one_year_ago() | |
#fa_un_any.get_year_ago(yearsago=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment