Skip to content

Commit 2a77733

Browse files
add some std.date types
1 parent 280f6c3 commit 2a77733

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/std/date.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ pub const epoch = @import("./date/epoch.zig");
55
///
66
/// Supports dates between years -32_768 and 32_768.
77
pub const Date = gregorian.Date(i16, epoch.posix);
8+
pub const Month = Date.Month;
9+
pub const Day = Date.Day;
10+
pub const Weekday = Date.Weekday;
811

912
test {
1013
_ = gregorian;

0 commit comments

Comments
 (0)