Ejemplo n.º 1
0
/** \brief Converts an instance of DATE to an instance of FILETIME.
 *
 * \ingroup group__concept__shim__time_conversion__to_FILETIME
 *
 * \param rhs A valid date, of type <code>DATE</code>
 * \return A valid date, of type <code>FILETIME</code>
 *
 * \exception winstl::conversion_error If the conversion fails, e.g. the
 *   <code>DATE</code> instance does not contain a valid date. When
 *   compiling absent exception support, a zero-initialised instance of
 *   <code>FILETIME</code> is returned.
 */
inline const FILETIME to_FILETIME(DATE const& rhs)
{
    return to_FILETIME(to_SYSTEMTIME(rhs));
}
Ejemplo n.º 2
0
/** \brief Converts an instance of UDATE to an instance of FILETIME.
 *
 * \ingroup group__concept__shim__time_conversion__to_FILETIME
 *
 * \param rhs A valid date, of type <code>UDATE</code>
 * \return A valid date, of type <code>FILETIME</code>
 *
 * \exception winstl::conversion_error If the conversion fails, e.g. the
 *   <code>UDATE</code> instance does not contain a valid date. When
 *   compiling absent exception support, a zero-initialised instance of
 *   <code>FILETIME</code> is returned.
 */
inline const FILETIME to_FILETIME(UDATE const& rhs)
{
    return to_FILETIME(rhs.st);
}