# Alarm Active Duration as Associated Data

**URL:** <https://forum.inductiveautomation.com/t/alarm-active-duration-as-associated-data/113879>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [February 10, 2026, 5:24pm UTC](https://forum.inductiveautomation.com/t/alarm-active-duration-as-associated-data/113879 "2026-02-10T17:24:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmueller](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@bmueller](https://forum.inductiveautomation.com/u/bmueller)\
**Post date:** [February 10, 2026, 5:24pm UTC](https://forum.inductiveautomation.com/t/alarm-active-duration-as-associated-data/113879/1 "2026-02-10T17:24:24Z")

</div>

I am setting up alarms in a UDT for errors on a system. I know alarms have pre-described active Duration. I have an associated data property that is the Error Duration. I want to use the Active Duration the alarm collects so that when event is over the duration gets placed into my SQL table. The issue I am having is that the Active Duration comes across as hours/minutes/seconds not as just seconds like i would like to. How can I format the expression so it only saves the time period in seconds every time.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/6/36286fa067701f8daf59136ae3b7c9113562def2.png)
