def _get_last_modified(last_modified=None):
 if (last_modified is None):
  dt = datetime.datetime.utcnow()
 else:
  dt = datetime.datetime.utcfromtimestamp((last_modified / 1000.0))
 dt = dt.replace(microsecond=0)
 return (u'%sZ' % dt.isoformat())

def _get_last_modified ( last_modified = None ) : if ( last_modified is None ) : dt = datetime . datetime . utcnow ( ) else : dt = datetime . datetime . utcfromtimestamp ( ( last_modified / 1000.0 ) ) dt = dt . replace ( microsecond = 0 ) return ( u'%sZ' % dt . isoformat ( ) )
formats last modified timestamp of a playlist for mpd .