TemporalZ

plainTimeISO

Returns the current time as a Temporal.PlainTime object, in the specified time zone.

When time_zone_like is null, the system time zone is used.

See: Temporal.Now.plainTimeISO

Parameters

#
allocator:std.mem.Allocator
std.mem.Allocator
io:std.Io
std.Io
time_zone_like:?[]const u8
?[]const u8

Source

Implementation

#
pub fn plainTimeISO(allocator: std.mem.Allocator, io: std.Io, time_zone_like: ?[]const u8) !PlainTime {
    const zdt = try zonedDateTimeISO(allocator, io, time_zone_like);
    defer zdt.deinit();
    return zdt.toPlainTime();
}