OPC_SIGNATURE_TIME_FORMAT enumeration

Describes how to interpret the signingTime parameter, which is a record of when a signature was created, of the IOpcDigitalSignature::GetSigningTime method.

Syntax


typedef enum  { 
  OPC_SIGNATURE_TIME_FORMAT_MILLISECONDS  = 0,
  OPC_SIGNATURE_TIME_FORMAT_SECONDS       = 1,
  OPC_SIGNATURE_TIME_FORMAT_MINUTES       = 2,
  OPC_SIGNATURE_TIME_FORMAT_DAYS          = 3,
  OPC_SIGNATURE_TIME_FORMAT_MONTHS        = 4,
  OPC_SIGNATURE_TIME_FORMAT_YEARS         = 5
} OPC_SIGNATURE_TIME_FORMAT;

Constants

OPC_SIGNATURE_TIME_FORMAT_MILLISECONDS

The format is the complete date with hours, minutes, and seconds expressed as a decimal fraction.

Syntax: YYYY-MM-DDThh:mm:ss.sTZD

A value of "2010-03-09T18:45:32.3-08:00" would represent 6:45:32.3 P.M. on March 9, 2010 Pacific Time.

OPC_SIGNATURE_TIME_FORMAT_SECONDS

The format is the complete date with hours, minutes, and seconds.

Syntax: YYYY-MM-DDThh:mm:ssTZD

A value of "2010-03-09T18:45:32-08:00" would represent 6:45:32 P.M. on March 9, 2010 Pacific Time.

OPC_SIGNATURE_TIME_FORMAT_MINUTES

The format is the complete date with hours and minutes.

Syntax: YYYY-MM-DDThh:mmTZD

A value of "2010-03-09T18:45-08:00" would represent 6:45 P.M. on March 9, 2010 Pacific Time.

OPC_SIGNATURE_TIME_FORMAT_DAYS

The format is the complete date.

Syntax: YYYY-MM-DD

A value of "2010-03-09" would represent March 9, 2010.

OPC_SIGNATURE_TIME_FORMAT_MONTHS

The format is the year and month.

Syntax: YYYY-MM

A value of "2010-03" would represent March, 2010.

OPC_SIGNATURE_TIME_FORMAT_YEARS

The format is the year.

Syntax: YYYY

A value of "2010" would represent 2010.

Remarks

The following table provides descriptions of placeholder values.

Placeholder Description Example

YYYY

Four-digit year.

2010

MM

Two-digit month with a leading zero. Possible values: 01–12.

03

DD

Two-digit day of month with a leading zero. Possible values: 01–31.

09

hh

Two-digit hour, 24-hour time with a leading zero. Possible values: 00–23.

18

mm

Two-digit minute with a leading zero. Possible values: 00–59.

45

ss

Two-digit second with a leading zero. Possible values: 00–59.

32

s

One digit representing the decimal fraction of a second.

3

TZD

Time zone designator with a leading zero. Possible values: Z, +hh:mm, -hh:mm.

-08:00

 

Requirements

Header

Msopc.h

IDL

OpcDigitalSignature.idl

See also

Packaging Enumerations
Overviews
Getting Started with the Packaging API
Packaging API Programming Guide
Reference
IOpcDigitalSignature::GetTimeFormat
IOpcSigningOptions::GetTimeFormat
IOpcSigningOptions::SetTimeFormat
Packaging Interfaces
Packaging API Samples
External Resources
ECMA-376 OpenXML standard
W3C Recommendation, XML Signature and Syntax Processing

 

 

Community Additions

ADD
Show: