It doesn't work like that. We're NotACodeMill. What have you tried so far? What didn't work?
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
You know how to convert days, hours and minutes into seconds. Converting seconds into days, hours and minutes is the inverse. The only "difficult" part is the splitting of one value into three values. Any part smaller than 1 day will be hours plus minutes; any part smaller than 1 hour will be minutes.