Keil Logo


4.50 time()

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

The default implementation of this function uses semihosting.


time_t time(time_t *timer);
The return value is an approximation of the current calendar time.


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 DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.