PINE LIBRARY
Updated FunctionDatestring

Library "FunctionDatestring"
Methods to stringify date/time, altho there is already builtin support for it.
datetime(unixtime) a stringified date stamp at specified unix time.
Parameters:
Returns: string
date_(unixtime) a stringified date stamp at specified unix time.
Parameters:
Returns: string
time_(unixtime) a stringified date stamp at specified unix time.
Parameters:
Returns: string
Methods to stringify date/time, altho there is already builtin support for it.
datetime(unixtime) a stringified date stamp at specified unix time.
Parameters:
- unixtime: int unix timestamp.
Returns: string
date_(unixtime) a stringified date stamp at specified unix time.
Parameters:
- unixtime: int unix timestamp.
Returns: string
time_(unixtime) a stringified date stamp at specified unix time.
Parameters:
- unixtime: int unix timestamp.
Returns: string
Release Notes
v2Updated:
datetime(unixtime, format) a stringified date stamp at specified unix time.
Parameters:
unixtime: int unix timestamp.
format: string, string format of the returned time, follows same convetions as str.format(), variables {x} range (0 -> 5).
Returns: string
Release Notes
v3Updated:
date_(unixtime, format) a stringified date stamp at specified unix time.
Parameters:
unixtime: int unix timestamp.
format: string, string format of the returned time, follows same convetions as str.format(), variables(0: year, 1:month, 2:day).
Returns: string
time_(unixtime, format) a stringified date stamp at specified unix time.
Parameters:
unixtime: int unix timestamp.
format: string, string format of the returned time, follows same convetions as str.format(), variables (0:hour, 1:minutes, 2:seconds).
Returns: string
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.