PINE LIBRARY
업데이트됨 TPCTime_Public

Library "TPCTime_Public"
Helpers for calculating time
getTimeOffset(interval, amount) Returns the length in ms for the given amount of the given interval.
Parameters:
interval: Interval to calculate, for example "D" or "60".
amount: Number of intervals for which to calculate the time range in ms.
Returns: The number of ms in the amount of the given interval.
isInTimeRange()
Helpers for calculating time
getTimeOffset(interval, amount) Returns the length in ms for the given amount of the given interval.
Parameters:
interval: Interval to calculate, for example "D" or "60".
amount: Number of intervals for which to calculate the time range in ms.
Returns: The number of ms in the amount of the given interval.
isInTimeRange()
릴리즈 노트
v2Added:
getPeriodAsMs()
isChildPeriod()
Updated:
getTimeOffset()
isInTimeRange()
릴리즈 노트
v3릴리즈 노트
v4Added:
getHumanDayOfWeek(timestamp, isShort, isWrap, startWrap, endWrap)
Returns the human-readable day of week for the given time.
Parameters:
timestamp: The UNIX timestamp for which to return the day of the week.
isShort: Whether to return a short date, e.g. "Mo" instead of "Monday"
isWrap: Whether to wrap the date, e.g. placing it inside characters such as brackets to result in [Mo]
startWrap: Start wrap character, e.g. an opening bracket.
endWrap: End wrap character, e.g. a closing bracket.
Returns: The number of ms in the given period.
릴리즈 노트
v5Added:
isInTimeRangeFromCurrentTime(period, periodCount)
Returns true if the current time is greater than or equal to the given periodCount of periods, else returns false.
Parameters:
period (string): Period to calculate with, for example "D" or "60".
periodCount (int): Amount of given periods to test.
Returns: True if the current time is greater than or equal to the given periodCount of periods, else returns false.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.