class TimeframeUnit

Parents

object

Brief

The class with all unit types of time frames

Static Public Properties

Day

Time frame: day

Hour

Time frame: hour

Minute

Time frame: minute

Month

Time frame: month

Tick

Time frame: tick

Unknown

Time frame: unknown

Week

Time frame: week

Year

Time frame: year

Static Public Methods

fromString

Takes a string input representing a time frame unit and returns an integer representation of that unit

toString

Takes an integer input representing a time frame unit and returns a string representation of that unit. If the input value matches one of the predefined constants in the class, the function returns the corresponding string representation. If the input value does not match any of the predefined constants, the function returns 'unknown'. This function is useful for displaying time values in a human-readable format

back