MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_timegm

Function av_timegm

libavutil/parseutils.c:573–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573time_t av_timegm(struct tm *tm)
574{
575 time_t t;
576
577 int y = tm->tm_year + 1900, m = tm->tm_mon + 1, d = tm->tm_mday;
578
579 if (m < 3) {
580 m += 12;
581 y--;
582 }
583
584 t = 86400LL *
585 (d + (153 * m - 457) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 719469);
586
587 t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec;
588
589 return t;
590}
591
592int av_parse_time(int64_t *timeval, const char *timestr, int duration)
593{

Callers 10

get_utc_date_time_insecFunction · 0.85
parse_cookieFunction · 0.85
parse_expiresFunction · 0.85
process_lineFunction · 0.85
get_cookiesFunction · 0.85
get_durationFunction · 0.85
get_ptsFunction · 0.85
mxf_timestamp_to_int64Function · 0.85
ftp_parse_dateFunction · 0.85
av_parse_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected