157 lines
3 KiB
Zig
157 lines
3 KiB
Zig
const std = @import("std");
|
|
const PlainDateTime = @This();
|
|
const PlainDate = @import("PlainDate.zig");
|
|
const PlainTime = @import("PlainTime.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 hour: i64 = 0;
|
|
pub var inLeapYear: bool = false;
|
|
pub var microsecond: i64 = 0;
|
|
pub var millisecond: i64 = 0;
|
|
pub var minute: i64 = 0;
|
|
pub var month: i64 = 0;
|
|
pub var monthCode: []const u8 = "";
|
|
pub var monthsInYear: i64 = 0;
|
|
pub var nanosecond: i64 = 0;
|
|
pub var second: i64 = 0;
|
|
pub var weekOfYear: i64 = 0;
|
|
pub var year: i64 = 0;
|
|
pub var yearOfWeek: i64 = 0;
|
|
|
|
pub fn init() error{Todo}!PlainDateTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn compare() error{Todo}!i8 {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn from() error{Todo}!PlainDateTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn add() error{Todo}!PlainDateTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn equals() error{Todo}!bool {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn round() error{Todo}!PlainDateTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn since() error{Todo}!Duration {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn subtract() error{Todo}!PlainDateTime {
|
|
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 toPlainTime() error{Todo}!PlainTime {
|
|
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}!PlainDateTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn withCalendar() error{Todo}!PlainDateTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn withPlainTime() error{Todo}!PlainDateTime {
|
|
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 round {
|
|
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 toPlainTime {
|
|
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;
|
|
}
|
|
test withPlainTime {
|
|
if (true) return error.Todo;
|
|
}
|