To circumvent the effect system, you can use this (since 0.20.0):
    
    
    func test(unixTime: int64): bool =
      {.noSideEffect.}:
        let t1 = local(fromUnix(unixTime))
    
    
    
    Run

Reply via email to