Share this page

# localtime

Example: Converting Time to Local Time | Date and Time Functions

Converts the calendar time into local time.

    struct tm *localtime( const time_t *calTime);

calTime | The name of the value for the calendar time.

Under Linux, localtime is not thread-safe. Use localtime_r, instead. Refer to your platform-specific documentation for details.

## Return Values

A pointer to a tm structure.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: