Skip to content

Timezones

Igor Sazonov edited this page Feb 4, 2026 · 1 revision

Timezones

The Timezones endpoint provides information about the timezones used by the various stock exchanges. This is useful for understanding trading hours and accurately timestamping data.

Getting Timezone Information

Use the timezones() method on the Marketstack facade to access the Timezones endpoint.

Get All Timezones

To retrieve a list of all supported timezones, you can make a simple call:

use Tigusigalpa\Marketstack\Facades\Marketstack;

$timezones = Marketstack::timezones()->collect();

Get a Specific Timezone

To get details for a specific timezone, use the timezone() method:

$timezone = Marketstack::timezones()
    ->timezone("America/New_York")
    ->dto();

echo "Timezone: {$timezone->timezone}\n";
echo "Abbreviation: {$timezone->abbr}\n";
echo "DST Abbreviation: {$timezone->abbr_dst}";

Available Methods

The following methods are available for the Timezones endpoint:

Method Description
timezone(string $timezone) Get information for a specific timezone.

For more information on response formats, see the Response Formats page.

Clone this wiki locally