-
Notifications
You must be signed in to change notification settings - Fork 0
Timezones
Igor Sazonov edited this page Feb 4, 2026
·
1 revision
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.
Use the timezones() method on the Marketstack facade to access the Timezones endpoint.
To retrieve a list of all supported timezones, you can make a simple call:
use Tigusigalpa\Marketstack\Facades\Marketstack;
$timezones = Marketstack::timezones()->collect();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}";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.