#NEWLINE# @ classmethod #NEWLINE# def add_datetimes_to_key( self , key ) : #NEWLINE# #INDENT# '\n        Convert the last_modified GMT datetime string to a datetime object and\n        create utc and local datetime objects.\n        ' #NEWLINE# utc = tz . tzutc ( ) #NEWLINE# gmt = tz . gettz ( 'GMT' ) #NEWLINE# local_tz = tz . tzlocal ( ) #NEWLINE# key . last_modified = datetime . strptime ( key . last_modified , '%Y-%m-%dT%H:%M:%S.%fZ' ) #NEWLINE# key . last_modified = key . last_modified . replace ( tzinfo = gmt ) #NEWLINE# key . utc_last_modified = key . last_modified . astimezone ( utc ) #NEWLINE# key . local_last_modified = key . last_modified . astimezone ( local_tz ) #NEWLINE# return key