class TimeframeUnit

Parents

object

Brief
The class with all unit types of time frames
Static Public Properties
Unknown Time frame: unknown
Minute Time frame: minute
Hour Time frame: hour
Day Time frame: day
Week Time frame: week
Month Time frame: month
Year Time frame: year
Tick Time frame: tick
Public Methods
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
fromString Takes a string input representing a time frame unit and returns an integer representation of that unit