sealed class TimeSpanA length of time measured in datetime units. public TimeSpan.Constructor(days=0, hours=0, minutes=0, seconds=0)public DatePrecisions TimeSpan.PrecisionThe amount of precision in the datepublic double TimeSpan.SecondReturns the seconds as a real numberpublic int TimeSpan.TicksReturns the number of 100 nanoseconds in the timepublic TimeSpan TimeSpan.WithPrecision(DatePrecisions precision)A new object at the specified precisionpublic double TimeSpan.YearsReturns the total years in the intervalpublic double TimeSpan.DaysReturns the total days in the intervalpublic double TimeSpan.HoursReturns the total hours in the intervalpublic double TimeSpan.MinutesReturns the total minutes in the intervalpublic double TimeSpan.SecondsReturns the total seconds in the intervalpublic readonly int TimeSpan.DayThe Day memberpublic readonly int TimeSpan.HourThe Hour memberpublic readonly int TimeSpan.MinuteThe Minute memberpublic double TimeSpan.TotalSecondsThe time expressed in whole and fractional secondspublic virtual object.GetLayoutTipReturn a layout for the hint popup
public virtual object.GetLayoutSpanReturn a layout inside a spanpublic virtual object.GetLayoutBlockReturn a layout inside a blockpublic virtual object.GetSourceReferenceReturn a source reference for this objectpublic virtual void object.GetTexSource(source)LaTeX source code for this objectpublic virtual Icon object.GetIconReturn a icon for this objectpublic virtual int object.Compare(value)Compares this object with another and returns (-1, 0, or 1)Example = Block { var past = #2021-03-18 12:30:14#; var span = DateTime.Now - past; Paragraph { "The elapsed time between "; past; " and now is : "; span.Day; " days, "; span.Hour; " hours, "; span.Minute; " minutes and "; span.Second; " seconds "; }; "This is a total of " span.TotalSeconds " seconds."; };The elapsed time between 2021-03-18 12:30:14 and now is : 1964 days, 5 hours, 34 minutes and 52.6379774 seconds This is a total of 169709692.6379774 seconds.