今月は何月かを取得する
サンプル
def get_month_today():$
try:$
today = datetime.datetime.today()$
this_month = int(today.strftime('%m'))$
print 'this_month:%s' % this_month$
return$
$
except:$
logging.error('get_month_today %s', sys.exc_info())$
raise$
$
if __name__== "__main__":$
try:$
logging.getLogger().setLevel(logging.DEBUG)$
get_month_today()$
except:$
logging.error('%s', sys.exc_info())$
raise