public method Timeframe.create

Overview

Creates a new instance of the class of the time frames with the specified unit and size parameters

Declaration

function create(unit, size)
public static Timeframe create(int unit, int size);
public static Timeframe create(int unit, int size);

Parameters

Name Description
unit The type of time frame that is being created, such as minutes, hours, days, or ticks
size The length of the time frame in the specified 'unit'

Returns

The method returns a new instance of the class of the time frames with the specified unit and size parameters

Details

Declared in Timeframe