103 lines
1.7 KiB
Zig
103 lines
1.7 KiB
Zig
const std = @import("std");
|
|
const PlainTime = @This();
|
|
const Duration = @import("Duration.zig");
|
|
|
|
pub var hour: i64 = 0;
|
|
pub var microsecond: i64 = 0;
|
|
pub var millisecond: i64 = 0;
|
|
pub var minute: i64 = 0;
|
|
pub var nanosecond: i64 = 0;
|
|
pub var second: i64 = 0;
|
|
|
|
pub fn init() error{Todo}!PlainTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn compare() error{Todo}!i8 {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn from() error{Todo}!PlainTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn add() error{Todo}!PlainTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn equals() error{Todo}!bool {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn round() error{Todo}!PlainTime {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn since() error{Todo}!Duration {
|
|
return error.Todo;
|
|
}
|
|
|
|
pub fn subtract() error{Todo}!PlainTime {
|
|
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 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}!PlainTime {
|
|
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 toString {
|
|
if (true) return error.Todo;
|
|
}
|
|
test until {
|
|
if (true) return error.Todo;
|
|
}
|
|
test with {
|
|
if (true) return error.Todo;
|
|
}
|