From fb6f60d4eccf63bbd9c1450e5e5bef7b8ff55a19 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Tue, 13 Jun 2023 01:36:44 -0400 Subject: [PATCH] Remove nanos field --- src/main.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.zig b/src/main.zig index 5bb15dc..64e405b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -235,7 +235,6 @@ pub const DateTime = struct { hour: ?u5, minute: ?u6, second: ?u6, - nanos: ?u32, tz: TimeZone, const Self = @This(); @@ -297,7 +296,6 @@ test "get year" { .hour = 1, .minute = 5, .second = 14, - .nanos = null, .tz = TimeZone.new(-5, null).?, }; try testing.expectEqual(dt.getYear(), 2023); @@ -311,7 +309,6 @@ test "get offset" { .hour = 1, .minute = 5, .second = 14, - .nanos = null, .tz = TimeZone.new(-5, null).?, }; try testing.expectEqual(dt.getOffset().?, Offset{ .negative = .{ .hours = 5, .minutes = null } }); @@ -325,7 +322,6 @@ test "to timestamp utc" { .hour = 6, .minute = 21, .second = 22, - .nanos = null, .tz = .utc, }; try testing.expectEqual(dt.toTimestamp(), 1686633682); @@ -339,7 +335,6 @@ test "to timestamp negative offset" { .hour = 1, .minute = 21, .second = 22, - .nanos = null, .tz = TimeZone.new(-5, null).?, }; try testing.expectEqual(dt.toTimestamp(), 1686633682);