Embedded TCP/IP stack  4.7.0

◆ fnet_time()

time_t fnet_time ( time_t *  sec)

Get time since the Epoch (00:00:00 UTC, January 1, 1970).

Parameters
[out]secIf the pointer is not FNET_NULL, it will get the time since the Epoch (00:00:00 UTC, January 1, 1970), in seconds.
Returns
This function returns time since the Epoch, in seconds.
See also
fnet_time_set(), FNET_CFG_TIME

This function returns the time since the Epoch (00:00:00 UTC, January 1, 1970), in seconds. It is defined by standard C library time.h, and may be used as time().
This function is available only if FNET_CFG_TIME is set.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net