| 742 | } datemap; |
| 743 | |
| 744 | static int |
| 745 | parse_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 | |
| 762 | G_GNUC_STRFTIME(1) static char* |
| 763 | get_creation_date(const char *pattern, const char *metaValue, const char *file) |
no test coverage detected