Logo

Programming-Idioms

History of Idiom 61 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-08-19, 15:18:59

Version 7

2015-08-20, 11:22:46

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Imports
#include <time.h>
Code
time_t d=time(0);
Comments bubble
Unix Timestamp