PackageDigitalSignature.TimeFormat Property

Gets the format of the date and time returned by the SigningTime property.

Namespace:  System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

public string TimeFormat { get; }

Property Value

Type: System.String
The format of the date and time returned by the SigningTime property.

ExceptionCondition
InvalidOperationException

The digital Signature has been deleted.

Date/time formats follow the syntax of the W3C Date and Time Formats note. The components shown in the following table must use the syntax and punctuation shown.

TimeFormat

Description

Example

YYYY

Year

2005

YYYY-MM

Year and month

2005-07

YYYY-MM-DD

Complete date

2005-07-28

YYYY-MM-DDThh:mmTZD

Complete date plus hours and minutes

2005-07-28T19:20-01:00

YYYY-MM-DDThh:mm:ssTZD

Complete date plus hours, minutes, and seconds

2005-07-28T19:20:45-01:00

YYYY-MM-DDThh:mm:ss.sTZD

Complete date plus hours, minutes, and seconds with a decimal fraction

2005-07-28T19:20:45.75-01:00

where:

YYYY

four-digit year (for example 2006)

MM

two-digit month (01=January)

DD

two-digit day of month (01 through 31)

Thh

two-digit hour (00 through 23, 24-hour time)

mm

two digits of minutes (00 through 59)

ss

two digits of seconds (00 through 59)

s

one or more digits representing a decimal fraction of a second

TZD

time zone designator (Z or +hh:mm or -hh:mm)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft