add seconds to: date"|"time"|"HHMMSS

Hey all,

I have a shell that invokes a AWK.
In this AWK i want invoke a function that receives 3 parameters:

  1. date: 20080831
  2. time: 235901
  3. duration: 00023

that function receive this 3 parameters and sum to this value two more seconds:

2008083123590100025

Remember that in case that I have 23h 59m and 59s, the additional 2 seconds should change the time to the next day...

The output of the function is this value... that i need to get him in my AWK...

How can I do this...??? can anyone help me?

thanks

The regular advice would be to convert to canonical time and then back. See the FAQ for more.

this is not help me....do you have some examples???

http://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html

awk canonical time - Google Search