Describes how raw tick counts are converted to date and time values.

Namespace: TeaTime
Assembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: 1.0.0.16 (1.0.0.16)

Syntax

public struct Timescale : IEquatable<Timescale>

Remarks

Time representation in TeaFiles

TeaFiles shall be usable by various applications and operatings systems. Each of these usually offer some system to deal with date, time or datetime values. TeaFiles can hold any of the values used by these systems. This class holds the values required to interpret raw time values.

Examples

A TeaFile might store items like
CopyC#
struct Observation
{
    public long     Time;
    public double   Temperature;
}
Lets say an observation holds a time value of 86410. To get the date and time of this integer value, we need to know the interval between ticks and the date/time where the counting started. Timescale provides these values as TicksPerDay and Epoch. The combination of a raw value, this might be an unsigned or signed integer or a floating point value and a time scale stored once for a time series gives enough flexibility to store values used by any time system.

See Also