localTime

number localTime(timestamp, timeZone)

Returns the timestamp adjusted from the specified timeZone to the local time zone.

Parameters

  1. timestampunix timestamp.
  2. timeZone — optional time zone of timestamp, default is UTC.

Returns