C++ Programming/Code/Standard C Library/Functions/localtime

From Wikibooks, open books for an open world
Jump to navigation Jump to search

localtime[edit | edit source]

#include <ctime>
struct tm *localtime( const time_t *time );

The function localtime() converts calendar time time into local time. Watch out for the static return.

Related topics
asctime - ctime - difftime - gmtime - strftime - time