#NEWLINE# def format_year( self , char , num ) : #NEWLINE# #INDENT# value = char . value . year #NEWLINE# if char . isupper ( ) : #NEWLINE# #INDENT# week = self . get_week_number ( self . get_day_of_year ( ) ) #NEWLINE# if ( week == 0 ) : #NEWLINE# #INDENT# value -= 1 #NEWLINE# #UNINDENT# #UNINDENT# year = self . format ( value , num ) #NEWLINE# if ( num == 2 ) : #NEWLINE# #INDENT# year = year [ ( - 2 ) : ] #NEWLINE# #UNINDENT# return year