RicardoSantos

FunctionDatestring

RicardoSantos Wizard Uppdaterad   
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
Versionsinformation:
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
Versionsinformation:
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
Pinebibliotek

I sann TradingView-anda har författaren publicerat denna Pine-kod som ett bibliotek med öppen källkod så att andra Pine-programmerare från vår community kan återanvända den. Hatten av för författaren! Du kan använda det här biblioteket privat eller i andra publikationer med öppen källkod, men återanvändning av den här koden i en publikation regleras av våra ordningsregler.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här biblioteket?

Kopiera följande rad och klistra in det i ditt skript.