# How to get Program-Date-Time in Bitmovin Roku Player

**URL:** <https://community.bitmovin.com/t/how-to-get-program-date-time-in-bitmovin-roku-player/3260>\
**Category:** Support\
**Tags:** bitmovin-player, roku, bitmovin\
**Created:** [September 3, 2024, 11:01am UTC](https://community.bitmovin.com/t/how-to-get-program-date-time-in-bitmovin-roku-player/3260 "2024-09-03T11:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkata.krishna](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@venkata.krishna](https://community.bitmovin.com/u/venkata.krishna)\
**Post date:** [September 3, 2024, 11:01am UTC](https://community.bitmovin.com/t/how-to-get-program-date-time-in-bitmovin-roku-player/3260/1 "2024-09-03T11:01:05Z")

</div>

### Product

Player

### Question

I’m implementing client-side SSAI ad tracking SDK using Bitmovin Roku player. To compare and track the Live stream Ad metadata I need the player’s current time in epoch format. Like for HLS Program-Date-Time is required and for DASH Presentation Time is required. I tried lot of methods but nothing helped. Please let me know how can I get Program-Date-Time and Presentation-Time from Live Streams.

---

<div class="post-metadata">

**Author:** ![wecoy71025](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/wecoy71025/32/981_2.png) [@wecoy71025](https://community.bitmovin.com/u/wecoy71025)\
**Post date:** [September 6, 2024, 10:57am UTC](https://community.bitmovin.com/t/how-to-get-program-date-time-in-bitmovin-roku-player/3260/2 "2024-09-06T10:57:47Z")

</div>

Hello…  
👋  
As per my knowledge… To get the current time in epoch format from a live stream on the Bitmovin Roku player, you can try accessing the HLS EXT-X-PROGRAM-DATE-TIME tag or the DASH AvailabilityStartTime and PresentationTimeOffset values. For HLS, you might need to parse the manifest directly to extract the Program-Date-Time. For DASH, use the AvailabilityStartTime from the MPD and calculate the current presentation time. Unfortunately, there isn’t a direct API for this in the Bitmovin Roku SDK, so you might need to implement custom parsing logic to achieve this.

I hope this will be helpful for you.

Respected community member 😇

---

<div class="post-metadata">

**Author:** ![venkata.krishna](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@venkata.krishna](https://community.bitmovin.com/u/venkata.krishna)\
**Post date:** [September 10, 2024, 2:00pm UTC](https://community.bitmovin.com/t/how-to-get-program-date-time-in-bitmovin-roku-player/3260/3 "2024-09-10T14:00:53Z")

</div>

Thank You for the response
