Sample code for 30+ languages & platforms
Go

Example: Crypt2.GetSignatureSigningTimeStr method

Demonstrates how to call the GetSignatureSigningTimeStr method.

Chilkat Go Downloads

Go
    success := false

    crypt := chilkat.NewCrypt2()

    success = crypt.VerifyP7M("qa_data/cades/CAdES-T/Signature-C-T-1.p7m","qa_output/out.dat")
    if success == false {
        fmt.Println(crypt.LastErrorText())
        crypt.DisposeCrypt2()
        return
    }

    numSigners := crypt.NumSignerCerts()
    fmt.Println("Num Signers = ", numSigners)

    i := 0
    for i < numSigners {
        if crypt.HasSignatureSigningTime(i) == true {
            fmt.Println(i + 1, ": ", *crypt.GetSignatureSigningTimeStr(i))
        } else {
            fmt.Println(i + 1, ": has no signing time.")
        }

        i = i + 1
    }

    // Sample output:

    // Num Signers = 1
    // 1: Sun, 03 Dec 2013 06:57:41 GMT

    crypt.DisposeCrypt2()