def convert_datetext_to_dategui(datetext, ln=None, secs=False):
assert ln is None, '<STR_LIT>'<EOL>try:<EOL><INDENT>datestruct = convert_datetext_to_datestruct(datetext)<EOL>if datestruct == datestruct_default:<EOL><INDENT>raise ValueError<EOL><DEDENT>if secs:<EOL><INDENT>output_format = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>output_format = "<STR_LIT>"<EOL><DEDENT>dt = datetime.fromtimestamp(time.mktime(datestruct))<EOL>return babel_format_datetime(dt, output_format)<EOL><DEDENT>except ValueError:<EOL><INDENT>return _("<STR_LIT>")<EOL><DEDENT>
Convert: '2005-11-16 15:11:57' => '16 nov 2005, 15:11'

    Or optionally with seconds:
    '2005-11-16 15:11:57' => '16 nov 2005, 15:11:57'
    Month is internationalized