Create a new Timescale instance from the epoch day/month/year and the number of ticks per day.

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

Syntax

public static Timescale FromEpoch(
	int epochYear,
	int epochMonth,
	int epochDay,
	long ticksPerDay
)

Parameters

epochYear
Type: System..::..Int32
The epoch year.
epochMonth
Type: System..::..Int32
The epoch month.
epochDay
Type: System..::..Int32
The epoch day.
ticksPerDay
Type: System..::..Int64
The ticks counted per day.

Return Value

A new Timescale instance.

Remarks

Static factory methods are provided since Timescale is a struct.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionThrown when one or more arguments have unsupported or illegal values.

See Also