Which data type can i use to store youtube video durations (ISO 8601, e.g. PT20M38S
) given by YouTube Data API v3?
I googled about storing ISO 8601 data and tried DATETIME but it converts it into 0000-00-00 00:00:00.
Which data type can i use to store youtube video durations (ISO 8601, e.g. PT20M38S
) given by YouTube Data API v3?
I googled about storing ISO 8601 data and tried DATETIME but it converts it into 0000-00-00 00:00:00.
Ideally, you should convert the timestamp given by youtube to seconds (As the format it's in is not very helpful if you're trying to do database operations with), and according to generally accepted answer store it that way: