#NEWLINE# def posix_to_dt_str( posix ) : #NEWLINE# #INDENT# 'Reverse of str_to_datetime.\n\n  This is used by GCS stub to generate GET bucket XML response.\n\n  Args:\n    posix: A float of secs from unix epoch.\n\n  Returns:\n    A datetime str.\n  ' #NEWLINE# dt = datetime . datetime . utcfromtimestamp ( posix ) #NEWLINE# dt_str = dt . strftime ( _DT_FORMAT ) #NEWLINE# return ( dt + '.000Z' )