enum Month [src]
Fields
jan = 1
feb
mar
apr
may
jun
jul
aug
sep
oct
nov
dec
Members
- numeric (Function)
Source
pub const Month = enum(u4) {
jan = 1,
feb,
mar,
apr,
may,
jun,
jul,
aug,
sep,
oct,
nov,
dec,
/// return the numeric calendar value for the given month
/// i.e. jan=1, feb=2, etc
pub fn numeric(self: Month) u4 {
return @intFromEnum(self);
}
}