extractTimePeriods

Works out the number of multiples of various timespans (years, days, hours, minutes, seconds) in the provided total count of seconds, breaking the seconds count down into constituent parts.

void
extractTimePeriods
(
ulong s
,
out uint years
,
out uint days
,
out uint hours
,
out uint minutes
,
out uint seconds
)

Parameters

s ulong

total seconds count to extract timespans from

years uint

receives the extracted count of years in s

days uint

receives the extracted count of days in s

hours uint

receives the extracted count of hours in s

minutes uint

receives the extracted count of minutes in s

seconds uint

receives the remaining seconds after all other timespans have been extracted from s

Meta