The 5th column value "5-12:13:14" should be converted into "5 days 12 hrs 13 minutes and 14 seconds" and stored into table in the database.. This value will be like 13:14 meaning that 13 hours and 14 seconds, read from right to left, I think you can follow this now..pls let me know if you still want more accurate. But this column
'what is a 'column'?
how are your records separated?
Is this '5-12:13:14' is only valid format of what needs to be 'split' and reformated or is e.g.'12' also valid (meaning '12 seconds')?
a couple of sample records/lines with varying values would be helpful (obviously).
Sample records
---------------
# Name Time
1 Elvis 12
2 Victor 12:00
3 Yorker 12:13:14
4 Prince 5-12:13:14
The columns are separated by white space..but if you look at the 'time' column, the format is not very standard..it can be seconds alone, or combination of minutes and seconds, or combination of hours, minutes,and seconds. But days if there is "-" (hyphen), it means time is more than 24 hours and they converted it into days.
look at my previous post.
it looks like you have THREE columns - not 5 you stated originally.
given your sample input file, what would the expected output be?