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
Mostra file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
Create ( int samplesPerSecond ) : DateTimeRounding
Round ( System.DateTime sourceTime ) : System.DateTime
Round ( long sourceTime ) : long

Private Methods

Method Description
DateTimeRounding ( int samplesPerSecond ) : System

Method Details

Create() public static method

public static Create ( int samplesPerSecond ) : DateTimeRounding
samplesPerSecond int
return DateTimeRounding

Round() public method

public Round ( System.DateTime sourceTime ) : System.DateTime
sourceTime System.DateTime
return System.DateTime

Round() public method

public Round ( long sourceTime ) : long
sourceTime long
return long