For weeks, days, hours, minutes and seconds it is possible doing using some simple maths in a conversion such as this:
int weeks = seconds / 604800;
int days = (seconds % 604800) / 86400;
int hours = ((seconds % 604800) % 86400) / 3600;
int minutes = (((seconds % 604800) % 86400) % 3600) / 60;
seconds = (((seconds % 604800) % 86400) % 3600) % 60;
The syntax is just for you to understand where the previous value come from.
For Years and Months it depends on the month (for example February has less days than any other) and if you are taking into account a leap year (366 days) or not.