C# Class Itenso.TimePeriod.DateAdd

Afficher le fichier Open project: jwg4/date-difference Class Usage Examples

Méthodes publiques

Méthode 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?

Méthodes protégées

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

Private Methods

Méthode 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 méthode

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

CalculateEnd() protected méthode

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
Résultat DateTime?

Subtract() public méthode

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