#NEWLINE# def getOffsetOfMonth( self , dt ) : #NEWLINE# #INDENT# w = Week ( weekday = self . weekday ) #NEWLINE# d = datetime ( dt . year , dt . month , 1 , tzinfo = dt . tzinfo ) #NEWLINE# d = w . rollforward ( dt ) #NEWLINE# for i in range ( self . week ) : #NEWLINE# #INDENT# d = w . apply ( d ) #NEWLINE# #UNINDENT# return d