temporalz/src/PlainYearMonth.zig
2026-01-26 15:23:08 +06:00

108 lines
1.9 KiB
Zig

const std = @import("std");
const PlainYearMonth = @This();
const PlainDate = @import("PlainDate.zig");
const Duration = @import("Duration.zig");
pub var calendarId: []const u8 = "";
pub var daysInMonth: i64 = 0;
pub var daysInYear: i64 = 0;
pub var era: []const u8 = "";
pub var eraYear: i64 = 0;
pub var inLeapYear: bool = false;
pub var month: i64 = 0;
pub var monthCode: []const u8 = "";
pub var monthsInYear: i64 = 0;
pub var year: i64 = 0;
pub fn init() error{Todo}!PlainYearMonth {
return error.Todo;
}
pub fn compare() error{Todo}!i8 {
return error.Todo;
}
pub fn from() error{Todo}!PlainYearMonth {
return error.Todo;
}
pub fn add() error{Todo}!PlainYearMonth {
return error.Todo;
}
pub fn equals() error{Todo}!bool {
return error.Todo;
}
pub fn since() error{Todo}!Duration {
return error.Todo;
}
pub fn subtract() error{Todo}!PlainYearMonth {
return error.Todo;
}
pub fn toJSON() error{Todo}![]const u8 {
return error.Todo;
}
pub fn toLocaleString() error{Todo}![]const u8 {
return error.Todo;
}
pub fn toPlainDate() error{Todo}!PlainDate {
return error.Todo;
}
pub fn toString() error{Todo}![]const u8 {
return error.Todo;
}
pub fn until() error{Todo}!Duration {
return error.Todo;
}
pub fn valueOf() error{Todo}!void {
return error.Todo;
}
pub fn with() error{Todo}!PlainYearMonth {
return error.Todo;
}
test compare {
if (true) return error.Todo;
}
test from {
if (true) return error.Todo;
}
test add {
if (true) return error.Todo;
}
test equals {
if (true) return error.Todo;
}
test since {
if (true) return error.Todo;
}
test subtract {
if (true) return error.Todo;
}
test toJSON {
if (true) return error.Todo;
}
test toLocaleString {
if (true) return error.Todo;
}
test toPlainDate {
if (true) return error.Todo;
}
test toString {
if (true) return error.Todo;
}
test until {
if (true) return error.Todo;
}
test with {
if (true) return error.Todo;
}