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

def datetimeToLogString ( msSinceEpoch = None ) : if ( msSinceEpoch == None ) : msSinceEpoch = time . time ( ) ( year , month , day , hh , mm , ss , wd , y , z ) = time . gmtime ( msSinceEpoch ) s = ( '[%02d/%3s/%4d:%02d:%02d:%02d +0000]' % ( day , monthname [ month ] , year , hh , mm , ss ) ) return s
convert seconds since epoch to log datetime string .