Novis\Intl\DateFormat::ZoneStyle
How DateFormat::dateTimes shows the time zone of a date and time.
DateFormat::ZoneStyle is declared in the class Novis\Intl\DateFormat.
You pass a DateFormat::ZoneStyle as zone:
Noneshows no time zone. This is the default.Offsetshows the difference from UTC, such as "GMT+2".Locationshows the country or city of the zone. For the zoneEurope/Vienna, this is "Austria Time".Genericshows the general name of the zone, such as "Central European Time". It does not say whether it is summer time, so the name is the same in summer and in winter.
The time itself is always the local time of the value's own zone. The zone style only adds a label.
Good to know: show a zone whenever readers may live in different time zones, for example for an online meeting.
Examples
Show the time zone
<?nvs// Shows the four ways `DateFormat::ZoneStyle` writes the time zone of a meeting time.use Novis\Intl\DateFormat;
array<Core\Time\DateTime> $meeting = [Core\Time\DateTime::fromIso('2026-07-14 15:00', 'Europe/Vienna')];
array<DateFormat::ZoneStyle> $styles = [DateFormat::ZoneStyle::None, DateFormat::ZoneStyle::Offset, DateFormat::ZoneStyle::Location, DateFormat::ZoneStyle::Generic];foreach ($styles as DateFormat::ZoneStyle $style) { echo DateFormat::dateTimes($meeting, 'en', { zone: $style })[0], "\n";}Jul 14, 2026, 3:00 PMJul 14, 2026, 3:00 PM GMT+2Jul 14, 2026, 3:00 PM Austria TimeJul 14, 2026, 3:00 PM Central European Time