# Neat way to store duration in Historian and show in PowerChart

**URL:** <https://forum.inductiveautomation.com/t/neat-way-to-store-duration-in-historian-and-show-in-powerchart/97937>\
**Category:** Ignition\
**Created:** [October 30, 2024, 8:19am UTC](https://forum.inductiveautomation.com/t/neat-way-to-store-duration-in-historian-and-show-in-powerchart/97937 "2024-10-30T08:19:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robbe\_Meyvis](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@Robbe\_Meyvis](https://forum.inductiveautomation.com/u/Robbe_Meyvis)\
**Post date:** [October 30, 2024, 8:19am UTC](https://forum.inductiveautomation.com/t/neat-way-to-store-duration-in-historian-and-show-in-powerchart/97937/1 "2024-10-30T08:19:17Z")

</div>

Hi, I have a device with an hour counter:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/4/f4372b5f37ecc0d68c649f15a7a573f4c25d0caa.png)

I can read out those values through modbus, and have them available as seconds:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/ef4b003e3fcb2d620d58869ac6731aa6a51ead75.png)

I used an expression tag from this post [OPC Tag Value Seconds to HH:MM:SS via Expression Tag - #5 by Kevin.Herron](https://forum.inductiveautomation.com/t/opc-tag-value-seconds-to-hhss-via-expression-tag/45544/5) to convert the seconds to a HH:MM:SS string.

But I'm wondering what the best way would be to store these durations in the historian so I can show them in PowerChart as HH:MM:SS (and also see the trend lines go up each second)?  
If I show the string in PowerChart it would just show "8079":  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/072c748d09c37b29c63ccc087b90239913864339.png)

Any suggestions on the neatest way to store and show durations in Ignition?
