4.50 time()

This is the standard C library time() function from time.h.

The default implementation of this function uses semihosting.

Syntax

time_t time(time_t *timer);

The return value is an approximation of the current calendar time.

Returns

The value ((time_t)-1) is returned if the calendar time is not available. If timer is not a NULL pointer, the return value is also stored in timer.

Non-ConfidentialPDF file icon PDF versionARM DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.