To get the time from the system, call the get time function time_get():
|
||
|
|
|
|
|
|
This function gets the time from the operating system and formats it according to the specified format string.
For instance, to get the time using the system time format, call:
|
Note that you must allocate memory for the string used to receive the formatted time string. This string must be long enough to accept a time string of the specified format.