Alarm Active Duration as Associated Data

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.