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

145 lines
2.8 KiB
Zig

const std = @import("std");
const PlainDate = @This();
const PlainDateTime = @import("PlainDateTime.zig");
const PlainMonthDay = @import("PlainMonthDay.zig");
const PlainYearMonth = @import("PlainYearMonth.zig");
const ZonedDateTime = @import("ZonedDateTime.zig");
const Duration = @import("Duration.zig");
pub var calendarId: []const u8 = "";
pub var day: i64 = 0;
pub var dayOfWeek: i64 = 0;
pub var dayOfYear: i64 = 0;
pub var daysInMonth: i64 = 0;
pub var daysInWeek: 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 weekOfYear: i64 = 0;
pub var year: i64 = 0;
pub var yearOfWeek: i64 = 0;
pub fn init() error{Todo}!PlainDate {
return error.Todo;
}
pub fn compare() error{Todo}!i8 {
return error.Todo;
}
pub fn from() error{Todo}!PlainDate {
return error.Todo;
}
pub fn add() error{Todo}!PlainDate {
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}!PlainDate {
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 toPlainDateTime() error{Todo}!PlainDateTime {
return error.Todo;
}
pub fn toPlainMonthDay() error{Todo}!PlainMonthDay {
return error.Todo;
}
pub fn toPlainYearMonth() error{Todo}!PlainYearMonth {
return error.Todo;
}
pub fn toString() error{Todo}![]const u8 {
return error.Todo;
}
pub fn toZonedDateTime() error{Todo}!ZonedDateTime {
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}!PlainDate {
return error.Todo;
}
pub fn withCalendar() error{Todo}!PlainDate {
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 toPlainDateTime {
if (true) return error.Todo;
}
test toPlainMonthDay {
if (true) return error.Todo;
}
test toPlainYearMonth {
if (true) return error.Todo;
}
test toString {
if (true) return error.Todo;
}
test toZonedDateTime {
if (true) return error.Todo;
}
test until {
if (true) return error.Todo;
}
test with {
if (true) return error.Todo;
}
test withCalendar {
if (true) return error.Todo;
}