C# Class GSF.DateTimeRounding

Responsible for rounding measurements to their nearest time bucket. For example. a 30 sample per second value of 5.1666766 would round to 5.1666667
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Méthode Description
Create ( int samplesPerSecond ) : DateTimeRounding
Round ( System.DateTime sourceTime ) : System.DateTime
Round ( long sourceTime ) : long

Private Methods

Méthode Description
DateTimeRounding ( int samplesPerSecond ) : System

Method Details

Create() public static méthode

public static Create ( int samplesPerSecond ) : DateTimeRounding
samplesPerSecond int
Résultat DateTimeRounding

Round() public méthode

public Round ( System.DateTime sourceTime ) : System.DateTime
sourceTime System.DateTime
Résultat System.DateTime

Round() public méthode

public Round ( long sourceTime ) : long
sourceTime long
Résultat long