comparison future.c @ 91:4102fe614df2

Fix timestamping. Cleanup data providers
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Fri, 22 Mar 2013 16:32:15 +0100
parents be814b934eca
children b955e35c07ae
comparison
equal deleted inserted replaced
90:c9aec93005a4 91:4102fe614df2
52 tp->tv_sec += 2208988800; 52 tp->tv_sec += 2208988800;
53 53
54 return 0; 54 return 0;
55 } 55 }
56 56
57
58 static struct tm * copy_tm_result(struct tm *dest, struct tm const *src)
59 {
60 if (! src)
61 return NULL;
62 *dest = *src;
63 return dest;
64 }
65
66
67 struct tm * gmtime_r(time_t const *t, struct tm *tp)
68 {
69 return copy_tm_result(tp, gmtime(t));
70 }
71