#NEWLINE# @ register #NEWLINE# def struct_time( a_struct_time , format = UNSET ) : #NEWLINE# #INDENT# 'Filter which formats given struct_time using given format option.' #NEWLINE# a_date = dt . fromtimestamp ( mktime ( a_date ) ) #NEWLINE# if ( format is UNSET ) : #NEWLINE# #INDENT# format = get_default ( 'DEFAULT_DATETIME_FORMAT' ) #NEWLINE# #UNINDENT# return datetime ( a_date , format = format )