Function zoneCurrentTime

  • Parameters

    • timezone: string

      The timezone for which the current local time needs to be retrieved.

    Returns Date

    The current local time as a Date object.

    const zoneTime = zoneCurrentTime("Asia/Yangon").toLocaleString();
    console.log(zoneTime);