Revision f6c7375a libavformat/avformat.h

View differences:

libavformat/avformat.h
1478 1478
                                          const char *arg);
1479 1479
#endif
1480 1480

  
1481
#if FF_API_PARSE_DATE
1481 1482
/**
1482 1483
 * Parse datestr and return a corresponding number of microseconds.
1484
 *
1483 1485
 * @param datestr String representing a date or a duration.
1484
 * - If a date the syntax is:
1485
 * @code
1486
 *  now|{[{YYYY-MM-DD|YYYYMMDD}[T|t| ]]{{HH[:MM[:SS[.m...]]]}|{HH[MM[SS[.m...]]]}}[Z|z]}
1487
 * @endcode
1488
 * If the value is "now" it takes the current time.
1489
 * Time is local time unless Z is appended, in which case it is
1490
 * interpreted as UTC.
1491
 * If the year-month-day part is not specified it takes the current
1492
 * year-month-day.
1493
 * @return the number of microseconds since 1st of January, 1970 up to
1494
 * the time of the parsed date or INT64_MIN if datestr cannot be
1495
 * successfully parsed.
1496
 * - If a duration the syntax is:
1497
 * @code
1498
 *  [-]HH[:MM[:SS[.m...]]]
1499
 *  [-]S+[.m...]
1500
 * @endcode
1501
 * @return the number of microseconds contained in a time interval
1502
 * with the specified duration or INT64_MIN if datestr cannot be
1503
 * successfully parsed.
1504
 * @param duration Flag which tells how to interpret datestr, if
1505
 * not zero datestr is interpreted as a duration, otherwise as a
1506
 * date.
1486
 * See av_parse_time() for the syntax of the provided string.
1487
 * @deprecated in favor of av_parse_time()
1507 1488
 */
1489
attribute_deprecated
1508 1490
int64_t parse_date(const char *datestr, int duration);
1491
#endif
1509 1492

  
1510 1493
/**
1511 1494
 * Get the current time in microseconds.

Also available in: Unified diff