# How to Insert multiple EXT-X-PROGRAM-DATE-TIME?

**URL:** <https://community.wowza.com/t/how-to-insert-multiple-ext-x-program-date-time/93638>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [August 2, 2021, 6:16pm UTC](https://community.wowza.com/t/how-to-insert-multiple-ext-x-program-date-time/93638 "2021-08-02T18:16:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Y](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@M\_Y](https://community.wowza.com/u/M_Y)\
**Post date:** [August 2, 2021, 6:16pm UTC](https://community.wowza.com/t/how-to-insert-multiple-ext-x-program-date-time/93638/1 "2021-08-02T18:16:02Z")

</div>

Hello,

I enabled EXT-X-PROGRAM-DATE-TIME referring to the following page.  
[https://www.wowza.com/docs/how-to-control-display-of-program-date-and-time-headers-in-hls-chunklists-for-live-streams-ext-x-program-date-time](https://www.wowza.com/docs/how-to-control-display-of-program-date-and-time-headers-in-hls-chunklists-for-live-streams-ext-x-program-date-time)

The result is as follows.

```
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:79
#EXT-X-DISCONTINUITY-SEQUENCE:0

#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:29:07.141+00:00
#EXTINF:9.984,
media_w530591337_79.aac
#EXTINF:9.984,
media_w530591337_80.aac
#EXTINF:10.112,
media_w530591337_81.aac

```

But there’s a problem with that.  
I would like to add EXT-X-PROGRAM-DATE-TIME to all media segments.  
For example, I want to do the following.

```
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:79
#EXT-X-DISCONTINUITY-SEQUENCE:0

#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:29:07.141+00:00
#EXTINF:9.984,
media_w530591337_79.aac
#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:39:07.141+00:00
#EXTINF:9.984,
media_w530591337_80.aac
#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:49:07.141+00:00
#EXTINF:10.112,
media_w530591337_81.aac

```

Is it possible to do so?

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [August 2, 2021, 10:49pm UTC](https://community.wowza.com/t/how-to-insert-multiple-ext-x-program-date-time/93638/2 "2021-08-02T22:49:54Z")

</div>

That’s an excellent question and welcome to the forums @M_Y.

It **IS** possible yes, but it requires custom development. Our Wowza example from the doc you shared only adds the EXT-X-PROGRAM-DATE-TIME to the first segment in the playlist.

Perhaps you could seek help in the Hire a Consultant forum or reach out to Wowza Professional Services for help.

We also have a slack channel for streaming devs all around the world that may be able to help you and you can join here and ask if they can help you set that up.

> **[The Wowza "LiveStreaming" Slack Group](https://www.wowza.com/community/t/the-wowza-livestreaming-slack-group/95725)**
>
> Greetings and welcome to the Wowza Forums! You may be wondering what happened to the Wowza “LiveStreaming” Slack Group, at the end of 2022 the decision was made to retire that medium and consolidate all of the insightful information and great...

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [August 2, 2021, 11:05pm UTC](https://community.wowza.com/t/how-to-insert-multiple-ext-x-program-date-time/93638/3 "2021-08-02T23:05:45Z")

</div>

You can sum EXTINF to find the time of any particular segment as well. If you’re not familiar with that, here is some more info  
:[https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming#section-4.3.2.1](https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming#section-4.3.2.1)

And on S[tack Overflow](https://stackoverflow.com/), if you search EXTINF, there are a lot of posts on it as well and media segments.
