I want to parse the string time but it results runtime error
    
    
    import times
    
    var parsedTime = parse("2017-05-24 10:33:54", "yyyy-MM-dd' 'HH:mm:ss")
    

Error 
    
    
    Traceback (most recent call last)
    parsingtime.nim(3)       parsingtime
    times.nim(952)           parse
    times.nim(751)           parseToken
    strutils.nim             parseInt
    Error: unhandled exception: invalid integer: 0: [ValueError]
    

What is the correct way to parse time?

Reply via email to