Skip to content

T_CodeJam_Dates_DateTimeRangeExtensions

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

DateTimeRangeExtensions Class

Helper methods for date manipulations

Helper methods for date manipulations

Helper methods for date manipulations

Inheritance Hierarchy

System.Object
  CodeJam.Dates.DateTimeRangeExtensions
Namespace: CodeJam.Dates
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class DateTimeRangeExtensions

VB

<ExtensionAttribute>
Public NotInheritable Class DateTimeRangeExtensions

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type DateTimeRangeExtensions =  class end

Methods

 

Name Description
Public methodStatic member CountOfDays(Range(DateTime)) Returns count of days between two dates.
Public methodStatic member CountOfDays(Range(DateTimeOffset)) Returns count of days between two dates.
Public methodStatic member CountOfMonths(Range(DateTime)) Returns count of month between two dates.
Public methodStatic member CountOfMonths(Range(DateTimeOffset)) Returns count of month between two dates.
Public methodStatic member DaysBetween(Range(DateTime)) Returns first days in range.
Public methodStatic member DaysBetween(Range(DateTimeOffset)) Returns first days in range.
Public methodStatic member DifferenceInDays(Range(DateTime)) Returns delta between two dates measured in days.
Public methodStatic member DifferenceInDays(Range(DateTimeOffset)) Returns delta between two dates measured in days.
Public methodStatic member DifferenceInMonths(Range(DateTime)) Returns delta between two dates measured in months.
Public methodStatic member DifferenceInMonths(Range(DateTimeOffset)) Returns delta between two dates measured in months.
Public methodStatic member GetFromStartOfYearRange(DateTime) Gets date range from start of the year to the current date.
Public methodStatic member GetFromStartOfYearRange(DateTimeOffset) Gets date range from start of the year to the current date.
Public methodStatic member GetMonthRange(DateTime) Returns date range for month.
Public methodStatic member GetMonthRange(DateTimeOffset) Returns date range for month.
Public methodStatic member GetToEndOfYearRange(DateTime) Gets date range from start of the year to the current date.
Public methodStatic member GetToEndOfYearRange(DateTimeOffset) Gets date range from start of the year to the current date.
Public methodStatic member GetYearRange(DateTime) Returns date range for year.
Public methodStatic member GetYearRange(DateTimeOffset) Returns date range for year.
Public methodStatic member MakeExclusive(Range(DateTime)) Replaces inclusive boundaries with exclusive ones.
Public methodStatic member MakeExclusive(Range(DateTimeOffset)) Replaces inclusive boundaries with exclusive ones.
Public methodStatic member MakeInclusive(Range(DateTime)) Replaces exclusive boundaries with inclusive ones.
Public methodStatic member MakeInclusive(Range(DateTimeOffset)) Replaces exclusive boundaries with inclusive ones.
Public methodStatic member MonthsBetween(Range(DateTime)) Returns first days of months in range.
Public methodStatic member MonthsBetween(Range(DateTimeOffset)) Returns first days of months in range.
Public methodStatic member SplitByMonths(Range(DateTime)) Splits the range by months.
Public methodStatic member SplitByMonths(Range(DateTimeOffset)) Splits the range by months.
Public methodStatic member SplitByYears(Range(DateTime)) Splits the range by years.
Public methodStatic member SplitByYears(Range(DateTimeOffset)) Splits the range by years.
Public methodStatic member YearsBetween(Range(DateTime)) Returns first days of years in range.
Public methodStatic member YearsBetween(Range(DateTimeOffset)) Returns first days of years in range.
  Back to Top

See Also

Reference

CodeJam.Dates Namespace

Clone this wiki locally