Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 174fee4af0
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.366 kB
/*
* Portable implementation of ltime() for any ISO-C platform where
* time_t behaves. (In practice, we've found that platforms such as
* Windows and Mac have needed their own specialised implementations.)
*/
#include <time.h>
#include <assert.h>
struct tm ltime(void)
{
time_t t;
time(&t);
assert (t != ((time_t)-1));
return *localtime(&t);
}
Jump to Line
Something went wrong with that request. Please try again.