From the NannyMUD documentation
2000-12-19
NAME
time_in_chunks - Split seconds into years, months, etc.LOCATION
/obj/supportSYNTAX
mapping time_in_chunks(int time)DESCRIPTION
This function returns a mapping with the 'time' given split into chunks of years. months, days, hours, minutes and seconds. Each chunk appears in the mapping for a certain index only if the corresponding value was non-zero. The indices are: y - number of years M - number of months d - number of days h - number of hours m - number of minutes s - number of secondsNOTE
This function assumes that every year is exactly 365 days, that every month is exactly 30 days, and that a day is exactly 24 hours. Those assumptions aren't true in the real world.EXAMPLE
"/obj/support" -> time_in_chunks(937043767); returns the mapping (["s":7,"m":56,"h":9,"M":8,"d":20,"y":29])