Sample code for 30+ languages & platforms
PowerShell

Example: Crypt2.GetSignatureSigningTimeStr method

Demonstrates how to call the GetSignatureSigningTimeStr method.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$crypt = New-Object Chilkat.Crypt2

$success = $crypt.VerifyP7M("qa_data/cades/CAdES-T/Signature-C-T-1.p7m","qa_output/out.dat")
if ($success -eq $false) {
    $($crypt.LastErrorText)
    exit
}

$numSigners = $crypt.NumSignerCerts
$("Num Signers = " + $numSigners)

$i = 0
while ($i -lt $numSigners) {
    if ($crypt.HasSignatureSigningTime($i) -eq $true) {
        $([string]$i + 1 + ": " + $crypt.GetSignatureSigningTimeStr($i))
    }
    else {
        $([string]$i + 1 + ": has no signing time.")
    }

    $i = $i + 1
}

# Sample output:

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