MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / parse_datestring

Function parse_datestring

gtk/src/callbacks.c:744–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742} datemap;
743
744static int
745parse_datestring(const char *src, struct tm *tm)
746{
747 datemap ymdThmsZ = {"[0-9]{4}-[0-1]?[0-9]-[0-3]?[0-9]T[0-9]{2}:[0-9]{2}:[0-9]{2}Z", "%Y-%m-%dT%H:%M:%SZ"};
748
749 datemap maps[1] = { ymdThmsZ };
750
751 for (guint i = 0; i < sizeof(maps); i++)
752 {
753 if (hb_validate_param_string(maps[i].pattern, src))
754 {
755 av_small_strptime(src, maps[i].format, tm);
756 return 1;
757 }
758 }
759 return 0;
760}
761
762G_GNUC_STRFTIME(1) static char*
763get_creation_date(const char *pattern, const char *metaValue, const char *file)

Callers 1

get_creation_dateFunction · 0.85

Calls 1

hb_validate_param_stringFunction · 0.85

Tested by

no test coverage detected