• Home
  • API Documentation
Show / Hide Table of Contents
  • TimeyWimey
    • DateTimeExtensions
      • ChangeKind
      • IsFuture
      • IsPast
      • TruncateToHours
      • TruncateToMinutes
      • TruncateToSeconds
    • DateTimeOffsetExtensions
      • IsFuture
      • IsPast
      • TruncateToHours
      • TruncateToMinutes
      • TruncateToSeconds
    • DateTimeRange
      • CompareTo
      • Contains
      • Create
      • DateTimeRange
      • End
      • EndAt
      • Equality
      • Equals
      • GetHashCode
      • GreaterThan
      • Inequality
      • Length
      • LessThan
      • Overlaps
      • Start
      • StartAt
    • NumberToTimespanExtensions
      • Days
      • Hours
      • Milliseconds
      • Minutes
      • Seconds
    • TimeSpans
      • EightHours
      • EightMilliseconds
      • FifteenMilliseconds
      • FifteenMinutes
      • FifteenSeconds
      • FiveDays
      • FiveHours
      • FiveHundredMilliseconds
      • FiveMilliseconds
      • FiveMinutes
      • FiveSeconds
      • FortyFiveMinutes
      • FortyFiveSeconds
      • FourteenDays
      • NinetyDays
      • OneDay
      • OneHour
      • OneHundredAndTwentyDays
      • OneHundredMilliseconds
      • OneMillisecond
      • OneMinute
      • OneSecond
      • SevenDays
      • SixteenMilliseconds
      • SixtyDays
      • TenHours
      • TenMilliseconds
      • TenMinutes
      • TenSeconds
      • ThirtyDays
      • ThirtyMinutes
      • ThirtyOneDays
      • ThirtySeconds
      • ThreeDays
      • ThreeHours
      • ThreeHundredAndSixtyFiveDays
      • ThreeMinutes
      • ThreeSeconds
      • TwelveHours
      • TwentyFourHours
      • TwentyMilliseconds
      • TwentyMinutes
      • TwentySeconds
      • TwoDays
      • TwoHours
      • TwoHundredAndFiftyMilliseconds
      • TwoMinutes
      • TwoSeconds
    • UnixTime
      • ToDateTime
      • ToDateTimeOffset
      • ToUnixTimestamp
      • UnixEpoch
      • UnixEpochDateTimeOffset
  • TimeyWimey.Abstractions
    • CachingClock
      • CachingClock
      • Dispose
      • Now
    • ClockBase
      • Adjusted
      • Now
      • OnAdjusted
    • IClock
      • Adjusted
      • Now
    • MockClock
      • Now
      • SetTime
    • SystemClock
      • Now
  • TimeyWimey.Tests
    • NumberToTimespanExtensions
      • DoubleToDays_InitialisesTimeSpanCorrectly
      • DoubleToHours_InitialisesTimeSpanCorrectly
      • DoubleToMilliseconds_InitialisesTimeSpanCorrectly
      • DoubleToMinutes_InitialisesTimeSpanCorrectly
      • DoubleToSeconds_InitialisesTimeSpanCorrectly
      • FloatToDays_InitialisesTimeSpanCorrectly
      • FloatToHours_InitialisesTimeSpanCorrectly
      • FloatToMilliseconds_InitialisesTimeSpanCorrectly
      • FloatToMinutes_InitialisesTimeSpanCorrectly
      • FloatToSeconds_InitialisesTimeSpanCorrectly
      • IntegerToDays_InitialisesTimeSpanCorrectly
      • IntegerToHours_InitialisesTimeSpanCorrectly
      • IntegerToMilliseconds_InitialisesTimeSpanCorrectly
      • IntegerToMinutes_InitialisesTimeSpanCorrectly
      • IntegerToSeconds_InitialisesTimeSpanCorrectly
      • LongToDays_InitialisesTimeSpanCorrectly
      • LongToHours_InitialisesTimeSpanCorrectly
      • LongToMilliseconds_InitialisesTimeSpanCorrectly
      • LongToMinutes_InitialisesTimeSpanCorrectly
      • LongToSeconds_InitialisesTimeSpanCorrectly

Class TimeSpans

Provides access common time spans. Each time span is a single cached instance, reducing allocations.

Inheritance
System.Object
TimeSpans
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeyWimey
Assembly: cs.temp.dll.dll
Syntax
public static class TimeSpans

Fields

Name Description
EightHours

Returns a System.TimeSpan representing eight hours.

EightMilliseconds

Returns a System.TimeSpan representing eight millseconds.

FifteenMilliseconds

Returns a System.TimeSpan representing 15 millseconds.

FifteenMinutes

Returns a System.TimeSpan representing 15 minutes.

FifteenSeconds

Returns a System.TimeSpan representing 15 seconds.

FiveDays

Returns a System.TimeSpan representing five days.

FiveHours

Returns a System.TimeSpan representing five hours.

FiveHundredMilliseconds

Returns a System.TimeSpan representing 500 millseconds.

FiveMilliseconds

Returns a System.TimeSpan representing five millseconds.

FiveMinutes

Returns a System.TimeSpan representing five minutes.

FiveSeconds

Returns a System.TimeSpan representing five seconds.

FortyFiveMinutes

Returns a System.TimeSpan representing 45 minutes.

FortyFiveSeconds

Returns a System.TimeSpan representing 45 seconds.

FourteenDays

Returns a System.TimeSpan representing 14 hours.

NinetyDays

Returns a System.TimeSpan representing 90 days.

OneDay

Returns a System.TimeSpan representing a single day.

OneHour

Returns a System.TimeSpan representing a single hour.

OneHundredAndTwentyDays

Returns a System.TimeSpan representing 120 days.

OneHundredMilliseconds

Returns a System.TimeSpan representing 100 millseconds.

OneMillisecond

Returns a System.TimeSpan representing a single millsecond.

OneMinute

Returns a System.TimeSpan representing a single minute.

OneSecond

Returns a System.TimeSpan representing a single second.

SevenDays

Returns a System.TimeSpan representing seven days.

SixteenMilliseconds

Returns a System.TimeSpan representing 16 millseconds.

SixtyDays

Returns a System.TimeSpan representing 60 days.

TenHours

Returns a System.TimeSpan representing 10 hours.

TenMilliseconds

Returns a System.TimeSpan representing ten millseconds.

TenMinutes

Returns a System.TimeSpan representing 10 minutes.

TenSeconds

Returns a System.TimeSpan representing 10 seconds.

ThirtyDays

Returns a System.TimeSpan representing 30 hours.

ThirtyMinutes

Returns a System.TimeSpan representing 30 minutes.

ThirtyOneDays

Returns a System.TimeSpan representing 31 days.

ThirtySeconds

Returns a System.TimeSpan representing 30 seconds.

ThreeDays

Returns a System.TimeSpan representing three days.

ThreeHours

Returns a System.TimeSpan representing three hours.

ThreeHundredAndSixtyFiveDays

Returns a System.TimeSpan representing 365 days.

ThreeMinutes

Returns a System.TimeSpan representing three minutes.

ThreeSeconds

Returns a System.TimeSpan representing three seconds.

TwelveHours

Returns a System.TimeSpan representing 12 hours.

TwentyFourHours

Returns a System.TimeSpan representing 24 hours.

TwentyMilliseconds

Returns a System.TimeSpan representing 20 millseconds.

TwentyMinutes

Returns a System.TimeSpan representing 20 minutes.

TwentySeconds

Returns a System.TimeSpan representing 20 seconds.

TwoDays

Returns a System.TimeSpan representing two days.

TwoHours

Returns a System.TimeSpan representing two hours.

TwoHundredAndFiftyMilliseconds

Returns a System.TimeSpan representing 250 millseconds.

TwoMinutes

Returns a System.TimeSpan representing two minutes.

TwoSeconds

Returns a System.TimeSpan representing two seconds.

Back to top Copyright (c) 2017 Troy Willmot