Gemstone Common Library
Show/Hide TOC

# TicksToSecondDistribution Method

Returns the distribution timestamp for given timestamp or MinValue if there is no TS within the specified Tolerance.

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.141 -- Release Build+8fc1477299d57116e2a4f3cb8dfe059f814b239b
C#
View Source Request Example

    public static Ticks ToSecondDistribution(
    	Ticks timestamp,
    	double samplesPerSecond,
    	Ticks baseline,
    	int tolerance
    )

VB
View Source Request Example

    Public Shared Function ToSecondDistribution (
    	timestamp As Ticks,
    	samplesPerSecond As Double,
    	baseline As Ticks,
    	tolerance As Integer
    ) As Ticks

C++
View Source Request Example

    public:
    static Ticks ToSecondDistribution(
    	Ticks timestamp,
    	double samplesPerSecond,
    	Ticks baseline,
    	int tolerance
    )

JavaScript
View Source Request Example

    Gemstone.Ticks.ToSecondDistribution = function(timestamp, samplesPerSecond, baseline, tolerance);

#### Parameters

timestamp Ticks
  Timestamp to align.
samplesPerSecond Double
  Samples per second to use for distribution.
baseline Ticks
  Starting Timestamp of the Distribution.
tolerance Int32
  Tolerance of the TS in ticks.

#### Return Value

Ticks
The distribution timestamp for given timestampor MinValue .

## See Also

#### Reference

Ticks Structure
Gemstone Namespace