public method TimeframeUnit.fromString
Overview
Takes a string input representing a time frame unit and returns an integer representation of that unit
Declaration
function fromString(unit)
public static int fromString(String unit);
public static int fromString(string unit);
Parameters
| Name | Description |
|---|---|
| unit | A time frame unit |
Returns
The method returns an integer that represents a time frame unit
Details
Declared in TimeframeUnit