RicardoSantos

FunctionDatestring

RicardoSantos Wizard Aktualisiert   
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
Versionshinweise:
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
Versionshinweise:
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 Bibliothek

In echter TradingView-Manier hat der Autor diesen Pine-Code als Open-Source-Bibliothek veröffentlicht, so dass andere Pine-Programmierer aus unserer Community ihn weiterverwenden können. Ein Hoch auf den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Publikationen verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie diese Bibliothek nutzen?

Kopieren Sie die folgende Zeile und fügen Sie sie in Ihr Skript ein.