def datetimeToString(msSinceEpoch=None):
 if (msSinceEpoch == None):
  msSinceEpoch = time.time()
 (year, month, day, hh, mm, ss, wd, y, z) = time.gmtime(msSinceEpoch)
 s = networkString(('%s, %02d %3s %4d %02d:%02d:%02d GMT' % (weekdayname[wd], day, monthname[month], year, hh, mm, ss)))
 return s

def datetimeToString ( msSinceEpoch = None ) : if ( msSinceEpoch == None ) : msSinceEpoch = time . time ( ) ( year , month , day , hh , mm , ss , wd , y , z ) = time . gmtime ( msSinceEpoch ) s = networkString ( ( '%s, %02d %3s %4d %02d:%02d:%02d GMT' % ( weekdayname [ wd ] , day , monthname [ month ] , year , hh , mm , ss ) ) ) return s
convert seconds since epoch to http datetime string .