Quote:
...code but doesnt work well.
Sadly, the above doesn't help us diagnose it very well. What output/errors do you get?
Can you get any trace output from/after the
mktime function? I think that the date input to
mktime is actually a string in the format
YYYY MM DD HH MM SS and you don't have all of it, hence I'm wondering if that's where it's going wrong. There is also confusion about all the double quotes.
I also don't see where you are trying to output the days as days. You are displaying the output as the raw difference between two timestamps, which we don't know if they are formatted correctly.
Can you add some
printf statements into your code and show us the output from a single input record?
Kind regards,
Robin