PINE LIBRARY

FunctionDatestring

Mis à jour
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
Notes de version
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
Notes de version
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
DATEdisplayformattingstringTIMEtimesessions

Bibliothèque Pine

Dans le plus pur esprit TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque en privé ou dans d'autres publications à code source ouvert, mais la réutilisation de ce code dans une publication est régie par nos Règles.

Clause de non-responsabilité