Function getEpochDay [src]
Returns the number of days since the epoch as an EpochDay.
Use EpochDay to get information about the day of this time.
Prototype
pub fn getEpochDay(self: EpochSeconds) EpochDay
Parameters
self: EpochSeconds
Source
pub fn getEpochDay(self: EpochSeconds) EpochDay {
return EpochDay{ .day = @as(u47, @intCast(@divTrunc(self.secs, secs_per_day))) };
}