2^32 - 1 is 4 294 967 295
if these are minutes
that's 71582788,25 hours (the 0,25 means 1/4 hours) so 71582788 hours and 15 minutes
71582788 is 2982616,166666666666667 days, the decimal part is actually 4 hours
so we have 2982616 days 4 hours 15 minutes
For the Gregorian calendar the average length of the calendar year (the mean year) across the complete leap cycle of 400 years is 365.2425 but in astronomy, the Julian year is a unit of time; it is defined as 365.25 days of exactly 86400 seconds (SI base unit), totalling exactly 31 557 600 seconds in the Julian astronomical year
So I'll go with the SI unit of 365,25 days
2982616 days is 8165 years and 349,75 days so 349 days and 18 hours
so minutes stored in an unsigned long can represent up to 8165 years 349 days 22 hours and 15 minutes
if these are seconds
4 294 967 295 seconds = 71 582 788 minutes and 0,25 minute = 71582788 minutes and 15 seconds
71582788 minutes = 1193046 hours and 28 minutes
1193046 hours = 49710 days and 6 hours
49710 days = 136 years and 36 days
so seconds stored in an unsigned long can represent up to 136 years 36 days 6 hours 28 minutes and 15 seconds
and because there are 60 seconds in a minute, this is 60 times less (which you can approximate if you look at the years: 8165 years / 60 ~136 years which is what we see
if these are milli seconds
then it's 1000 times less...
4 294 967 295 milli seconds = 4 294 967 seconds and 295 milli seconds
4 294 967 seconds = 71582 minutes and 47 seconds
71582 minutes = 1193 hours and 2 minutes
1193 hours = 49 days and 17 hours
so milli seconds stored in an unsigned long can represent up to 49 days and 17 hours 2 minutes 47 seconds and 295 milli seconds
Now, if you use signed integers, then you get half this,duration