PINE LIBRARY
WTFTime Library (do not delete)

Library "WTFTime"
Utilities for measuring time.
bar()
Gets the number of milliseconds per bar.
date(datetime)
Gets the start of the day for the provided time value.
Parameters:
datetime (int): The date/time to acquire the date from.
Returns: The number of milliseconds representing the date for the given value.
timeOfDay(datetime)
Gets milliseconds from the start of the day.
Parameters:
datetime (int): The date/time to acquire the time of day from.
Returns: The number of milliseconds representing time of day.
spanToLen(timespan, type, sessionMinutes)
Returns the number (float) bars that represents the timespan provided.
Parameters:
timespan (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Bars', 'Minute', 'Minutes', 'Day' or 'Days')
sessionMinutes (simple int): Optional override for the number of minutes per session. (Default: Regular = 390, Extended = 1440)
Returns: The number bars that represents the timespan provided.
spanToIntLen(timespan, type)
Returns the number (int) bars that represents the timespan provided.
Parameters:
timespan (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Minute' or 'Day')
Returns: The number bars that represents the timespan provided.
Utilities for measuring time.
bar()
Gets the number of milliseconds per bar.
date(datetime)
Gets the start of the day for the provided time value.
Parameters:
datetime (int): The date/time to acquire the date from.
Returns: The number of milliseconds representing the date for the given value.
timeOfDay(datetime)
Gets milliseconds from the start of the day.
Parameters:
datetime (int): The date/time to acquire the time of day from.
Returns: The number of milliseconds representing time of day.
spanToLen(timespan, type, sessionMinutes)
Returns the number (float) bars that represents the timespan provided.
Parameters:
timespan (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Bars', 'Minute', 'Minutes', 'Day' or 'Days')
sessionMinutes (simple int): Optional override for the number of minutes per session. (Default: Regular = 390, Extended = 1440)
Returns: The number bars that represents the timespan provided.
spanToIntLen(timespan, type)
Returns the number (int) bars that represents the timespan provided.
Parameters:
timespan (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Minute' or 'Day')
Returns: The number bars that represents the timespan provided.
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน