TemporalZ

init

Initialize a TimeZone from an identifier string.

Parameters

#
id:[]const u8
[]const u8

Source

Implementation

#
pub fn init(id: []const u8) !TimeZone {
        const view = abi.toDiplomatStringView(id);
        const result = abi.c.temporal_rs_TimeZone_try_from_str(view);
        const time_zone = try abi.extractResult(result);
        return .{ ._inner = time_zone };
    }