timeZoneId
Returns the time zone identifier used to interpret the internal instant.
Parameters
- self:ZonedDateTime
- ZonedDateTime
- allocator:std.mem.Allocator
- std.mem.Allocator
Source
Implementation
pub fn timeZoneId(self: ZonedDateTime, allocator: std.mem.Allocator) ![]u8 {
const tz = abi.c.temporal_rs_ZonedDateTime_timezone(self._inner);
var write = abi.DiplomatWrite.init(allocator);
defer write.deinit();
abi.c.temporal_rs_TimeZone_identifier(tz, &write.inner);
return try write.toOwnedSlice();
}