Date to timestamp

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

Function Syntax

int date_to_timestamp(string inFormat ,string dtg )

  • inFormat is how the input string is formatted.
  • dtg is the date string to convert.

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


See Also

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