Syntax
What EXT-X-PROGRAM-DATE-TIME means
EXT-X-PROGRAM-DATE-TIME links the first frame of a segment to an absolute date and time, also called wall-clock time. It turns "12 minutes into the stream" into "18:42 UTC on March 4", which is useful for live streams, recordings of scheduled events and lining video up with other data.
The value is an ISO 8601 date and time, such as 2026-03-04T18:30:00.000Z. It should include a time zone (Z for UTC, or an offset such as -05:00) and fractions of a second to millisecond accuracy.
Where it goes
Media playlists only, and it applies only to the next segment. Servers can put it on every segment or on a few. For segments without one, players count forward from the last tag using the EXTINF durations. If the first tag comes after some segments, players count backward for those.
Rules from RFC 8216
- A server that uses the tag should put one on every segment that follows an
EXT-X-DISCONTINUITY, since counting forward across a break is unreliable. - A server must not add tags that make the mapping between dates and segments ambiguous.
- A playlist with an
EXT-X-DATERANGEtag must contain at least oneEXT-X-PROGRAM-DATE-TIME. - If one media playlist in a master playlist has the tag, all of them must, with consistent dates for the same media.
- Players must take a given time zone into account. If there is none, RFC 8216 lets players assume local time. The RFC 8216bis draft changes this: a time without a zone should be treated as UTC.
See section 4.3.2.6 of RFC 8216 for the tag itself and sections 6.2.1 and 6.3.3 for the server and player rules.
Common mistakes
- No time zone. Players may show the wrong time, and RFC 8216 and the draft disagree on what to assume.
- An encoder clock that is wrong. Every date in the playlist is then off by the same amount.
- Dates that do not match the durations. If two tags are further apart than the
EXTINFdurations between them add up to, players have to decide which to trust.
The date can describe when the content was produced rather than when it is watched. In a replay, the dates may still show when the original event happened.
How players treat it
RFC 8216 lets players use the mapping as a basis for seeking, for display or for other purposes. Some players show it as a clock on the seek bar of a live stream, and apps use it to line video up with captions, data feeds or chat.
Example
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:4410
#EXT-X-PROGRAM-DATE-TIME:2026-03-04T18:30:00.000Z
#EXTINF:6.000,
seg4410.ts
#EXTINF:6.000,
seg4411.ts
#EXTINF:6.000,
seg4412.tsSegment 4410 starts at 18:30:00 UTC, so players work out that segment 4411 starts at 18:30:06 and segment 4412 at 18:30:12 by adding the EXTINF durations.
How m3u8.cloud handles it
The m3u8 inspector shows EXT-X-PROGRAM-DATE-TIME values as wall-clock time. That can help you work out when part of a recorded meeting happened.
Related tags
Check the tags in any playlist
Open the m3u8 inspector