Skip to content

Latest commit

 

History

History
109 lines (90 loc) · 3.09 KB

nf-webservices-wsfiletimetodatetime.md

File metadata and controls

109 lines (90 loc) · 3.09 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:webservices.WsFileTimeToDateTime
WsFileTimeToDateTime function (webservices.h)
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.
WsFileTimeToDateTime
WsFileTimeToDateTime function [Web Services for Windows]
webservices/WsFileTimeToDateTime
wsw.wsfiletimetodatetime
wsw\wsfiletimetodatetime.htm
wsw
75a547f8-c8dc-47c3-97c9-2a39b046263f
12/05/2018
WsFileTimeToDateTime, WsFileTimeToDateTime function [Web Services for Windows], webservices/WsFileTimeToDateTime, wsw.wsfiletimetodatetime
webservices.h
Windows
Windows 7 [desktop apps \| UWP apps]
Windows Server 2008 R2 [desktop apps \| UWP apps]
WebServices.lib
WebServices.dll
Windows
19H1
WsFileTimeToDateTime
webservices/WsFileTimeToDateTime
c++
APIRef
kbSyntax
DllExport
WebServices.dll
WsFileTimeToDateTime

WsFileTimeToDateTime function

-description

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.

-parameters

-param fileTime [in]

A pointer to the FILETIME structure to convert.

-param dateTime [out]

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

-param error [in, optional]

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

-returns

This function can return one of these values.

Return code Description
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.