Keil Logo Arm Logo

C and C++ Libraries and Floating-Point Support Reference

time()

time()

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

The default implementation of this function uses semihosting.

Show/hideSyntax

time_t time(time_t *timer);

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

Show/hideReturns

The value -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.

Show/hideSee also

Reference

Using ARM C and C++ Libraries and Floating-Point Support:

Copyright © 2011-2012 ARM. All rights reserved.ARM DUI 0589B
Non-ConfidentialID062912

Keil logo

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.