#NEWLINE# def time2netscape( t = None ) : #NEWLINE# #INDENT# 'Return a string representing time in seconds since epoch, t.\n\n    If the function is called without an argument, it will use the current\n    time.\n\n    The format of the returned string is like this:\n\n    Wed, DD-Mon-YYYY HH:MM:SS GMT\n\n    ' #NEWLINE# if ( t is None ) : #NEWLINE# #INDENT# t = time . time ( ) #NEWLINE# #UNINDENT# ( year , mon , mday , hour , min , sec , wday ) = time . gmtime ( t ) [ : 7 ] #NEWLINE# return ( '%s %02d-%s-%04d %02d:%02d:%02d GMT' % ( DAYS [ wday ] , mday , MONTHS [ ( mon - 1 ) ] , year , hour , hour , sec ) )