C# Class Itenso.TimePeriod.DateAdd

Show file Open project: jwg4/date-difference Class Usage Examples

Public Methods

Method Description
Add ( System.DateTime start, System.TimeSpan offset, SeekBoundaryMode seekBoundaryMode = SeekBoundaryMode.Next ) : DateTime?
Subtract ( System.DateTime start, System.TimeSpan offset, SeekBoundaryMode seekBoundaryMode = SeekBoundaryMode.Next ) : DateTime?

Protected Methods

Method Description
CalculateEnd ( System.DateTime start, System.TimeSpan offset, SeekDirection seekDirection, SeekBoundaryMode seekBoundaryMode, System.TimeSpan &remaining ) : DateTime?

Private Methods

Method Description
FindNextPeriod ( System.DateTime start, IEnumerable periods, System.DateTime &moment ) : ITimePeriod
FindPreviousPeriod ( System.DateTime start, IEnumerable periods, System.DateTime &moment ) : ITimePeriod

Method Details

Add() public method

public Add ( System.DateTime start, System.TimeSpan offset, SeekBoundaryMode seekBoundaryMode = SeekBoundaryMode.Next ) : DateTime?
start System.DateTime
offset System.TimeSpan
seekBoundaryMode SeekBoundaryMode
return DateTime?

CalculateEnd() protected method

protected CalculateEnd ( System.DateTime start, System.TimeSpan offset, SeekDirection seekDirection, SeekBoundaryMode seekBoundaryMode, System.TimeSpan &remaining ) : DateTime?
start System.DateTime
offset System.TimeSpan
seekDirection SeekDirection
seekBoundaryMode SeekBoundaryMode
remaining System.TimeSpan
return DateTime?

Subtract() public method

public Subtract ( System.DateTime start, System.TimeSpan offset, SeekBoundaryMode seekBoundaryMode = SeekBoundaryMode.Next ) : DateTime?
start System.DateTime
offset System.TimeSpan
seekBoundaryMode SeekBoundaryMode
return DateTime?