enumstd.time.epoch.Month[src]

Fields

jan = 1
feb
mar
apr
may
jun
jul
aug
sep
oct
nov
dec

Functions

Functionnumeric[src]

pub fn numeric(self: Month) u4

return the numeric calendar value for the given month i.e. jan=1, feb=2, etc

Parameters

self: Month

Source Code

Source code
pub fn numeric(self: Month) u4 {
    return @intFromEnum(self);
}

Source Code

Source code
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);
    }
}