Timestamp to date

From Kolmafia
Revision as of 12:05, 19 October 2020 by imported>Gausie (Created page with "{{ #vardefine:name|timestamp_to_date}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

string timestamp_to_date(string outFormat ,int timestamp )

  • inFormat is how the output string is formatted.
  • dtg is the timestamp to convert.

Converts a UNIX timestamp (in milliseconds) to a date. Full information on SimpleDateFormat here.


See Also

gameday_to_string() | gameday_to_int() | now_to_string() | now_to_int() | time_to_string() | date_to_timestamp()