inTimezone method
Converts this date to a specific timezone.
Implementation
Hora inTimezone(HoraTimezone tz) {
// First convert to UTC
final utcTime = isUtc ? this : toUtc();
// Then apply the target timezone offset
final targetMs = utcTime.unixMillis + tz.offset.inMilliseconds;
final dt = DateTime.fromMillisecondsSinceEpoch(targetMs, isUtc: true);
return Hora.of(
year: dt.year,
month: dt.month,
day: dt.day,
hour: dt.hour,
minute: dt.minute,
second: dt.second,
millisecond: dt.millisecond,
utc: true,
locale: locale,
);
}