RicardoSantos

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:
  • 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
リリースノート: v2

Updated:
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
リリースノート: v3

Updated:
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ライブラリ

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 use it freely. Cheers to the author!

Want to use this library?

Copy text to clipboard and paste it in your script.