#NEWLINE# def _get_year_period( self ) : #NEWLINE# #INDENT# '\n        Returns beginning and an end for a year period.\n        ' #NEWLINE# start = datetime . datetime ( self . now . year , 1 , 1 ) #NEWLINE# end = ( datetime . datetime ( ( self . now . year + 1 ) , 1 , 1 , 23 , 59 , 59 , 999999 ) - datetime . timedelta ( 1 ) ) #NEWLINE# return ( start . strftime ( self . template ) , end . strftime ( self . template ) )