pub unsafe extern "C" fn mbedtls_platform_gmtime_r(
    tt: *const i64,
    tm_buf: *mut tm
) -> *mut tm
Expand description

\brief Platform-specific implementation of gmtime_r()

        The function is a thread-safe abstraction that behaves
        similarly to the gmtime_r() function from Unix/POSIX.

        Mbed TLS will try to identify the underlying platform and
        make use of an appropriate underlying implementation (e.g.
        gmtime_r() for POSIX and gmtime_s() for Windows). If this is
        not possible, then gmtime() will be used. In this case, calls
        from the library to gmtime() will be guarded by the mutex
        mbedtls_threading_gmtime_mutex if MBEDTLS_THREADING_C is
        enabled. It is recommended that calls from outside the library
        are also guarded by this mutex.

        If MBEDTLS_PLATFORM_GMTIME_R_ALT is defined, then Mbed TLS will
        unconditionally use the alternative implementation for
        mbedtls_platform_gmtime_r() supplied by the user at compile time.

\param tt Pointer to an object containing time (in seconds) since the epoch to be converted \param tm_buf Pointer to an object where the results will be stored

\return Pointer to an object of type struct tm on success, otherwise NULL