Parse timestr and return in *time a corresponding number of
microseconds.
@param timeval puts here the number of microseconds corresponding
to the string in timestr. If the string represents a duration, it
is the number of microseconds contained in the time interval. If
the string is a date, is the number of microseconds since 1st of
January, 1970 up to the time of the parsed date. If timestr cannot
be successfully parsed, set *time to INT64_MIN.
@param timestr a string representing a date or a duration.
- If a date the syntax is:
@code
[{YYYY-MM-DD|YYYYMMDD}t|]{{HH:MM:SS.m...]]}|{HHMMSS.m...]]}}Z
now
@endcode
If the value is "now" it takes the current time.
Time is local time unless Z is appended, in which case it is
interpreted as UTC.
If the year-month-day part is not specified it takes the current
year-month-day.
- If a duration the syntax is:
@code
[-][HH:]MM:SS.m...
[-]S+.m...
@endcode
@param duration flag which tells how to interpret timestr, if not
zero timestr is interpreted as a duration, otherwise as a date
@return >= 0 in case of success, a negative value corresponding to an
AVERROR code otherwise
Parse timestr and return in *time a corresponding number of microseconds.
@param timeval puts here the number of microseconds corresponding to the string in timestr. If the string represents a duration, it is the number of microseconds contained in the time interval. If the string is a date, is the number of microseconds since 1st of January, 1970 up to the time of the parsed date. If timestr cannot be successfully parsed, set *time to INT64_MIN.
@param timestr a string representing a date or a duration. - If a date the syntax is: @code [{YYYY-MM-DD|YYYYMMDD}t|]{{HH:MM:SS.m...]]}|{HHMMSS.m...]]}}Z now @endcode If the value is "now" it takes the current time. Time is local time unless Z is appended, in which case it is interpreted as UTC. If the year-month-day part is not specified it takes the current year-month-day. - If a duration the syntax is: @code [-][HH:]MM:SS.m... [-]S+.m... @endcode @param duration flag which tells how to interpret timestr, if not zero timestr is interpreted as a duration, otherwise as a date @return >= 0 in case of success, a negative value corresponding to an AVERROR code otherwise