Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WsFileTimeToDateTime function

Takes a reference to a FILETIME object and converts it into a WS_DATETIME object. A reference to the WS_DATETIME object is returned by output parameter.

Syntax


HRESULT WINAPI  WsFileTimeToDateTime(
  _In_     const FILETIME* fileTime,
  _Out_    WS_DATETIME*    dateTime,
  _In_opt_ WS_ERROR*       error
);

Parameters

fileTime [in]

A pointer to the FILETIME structure to convert.

dateTime [out]

A pointer to the new WS_DATETIME object that has the newly converted time.

error [in, optional]

A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.

Return value

This function can return one of these values.

Return codeDescription
E_INVALIDARG

One or more arguments are invalid.

WS_E_INVALID_FORMAT

The input data was not in the expected format or did not have the expected value.

 

Remarks

A WS_DATETIME cannot represent dates from the year 10000 and beyond. A FILETIME representing a date later than this will cause the function return WS_E_INVALID_FORMAT. (See Windows Web Services Return Values.)

The format field of the WS_DATETIME will be set to WS_DATETIME_FORMAT_UTC.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

Show:
© 2017 Microsoft