次の方法で共有


IPOutlookApp::SystemTimeToVariantTime (Windows Embedded CE 6.0)

1/6/2010

The SystemTimeToVariantTime method converts a system time object to it's Variant equivalent.

Syntax

HRESULT SystemTimeToVariantTime(
   SYSTEMTIME * pst,
  DATE * pdate
);

Parameters

  • pst
    [in] Reference to system time object to convert. For information about the SYSTEMTIME structure, see SYSTEMTIME.
  • pdate
    [out] Reference to the Variant time equivalent.

Return Value

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • S_OK
    The method completed successfully.

Remarks

A DATE, or Variant Time Object, is stored as an 8-byte real value (double) representing a date between January 1, 100 and December 31, 9999, inclusive. The value 2.0 represents January 1, 1900; 3.0 represents January 2, 1900, and so on. Adding 1 to the value increments the date by a day. The fractional part of the value represents the time of day. Therefore, 2.5 represents noon on January 1, 1900; 3.25 represents 6:00 A.M. on January 2, 1900; and so on. Negative numbers represent the dates prior to December 30, 1899.

Requirements

Header pimstore.h
Library Pimstore.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Tasks

Creating a PIM Item

Reference

IPOutlookApp
Pocket Outlook Object Model Interfaces

Other Resources

Pocket Outlook Object Model Enumerations