MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfGiveCurrentTime

Function adfGiveCurrentTime

dep/adflib/src/adf_util.c:162–180  ·  view source on GitHub ↗

* adfCurrentDateTime * * return the current system date and time */

Source from the content-addressed store, hash-verified

160 * return the current system date and time
161 */
162 struct DateTime
163adfGiveCurrentTime( void )
164{
165 struct tm *local;
166 time_t cal;
167 struct DateTime r;
168
169 time(&cal);
170 local=localtime(&cal);
171
172 r.year=local->tm_year; /* since 1900 */
173 r.mon=local->tm_mon+1;
174 r.day=local->tm_mday;
175 r.hour=local->tm_hour;
176 r.min=local->tm_min;
177 r.sec=local->tm_sec;
178
179 return(r);
180}
181
182
183/*

Callers 6

adfFlushFileFunction · 0.85
adfCreateVolFunction · 0.85
adfCreateEntryFunction · 0.85
adfCreateDirFunction · 0.85
adfCreateFileFunction · 0.85
adfUpdateBitmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected