How do I convert a date to weeks, days, hours, minutes, seconds

Can you please tell me how can I convert a date into a total no of weeks, hours, minutes, and seconds?
Please reply as soon as possible
Hoping for the best
Yours faithfully
Pavan

Use clock component

I probably misunderstood your question but this is some code im using which displays the time like "1:25:15 2020 October 20 Tuesday".

But what do I do for months and years ???