OxL Reference

method Date.lengthOfMonth

Days in this date's month.

Example:

oxl✓ checked in CI
use std.time { Date }

fn main() io {
  print("{Date.of(2028, 2, 10)!.lengthOfMonth()}")
}
Output
29
pub(api) fn lengthOfMonth() -> i64

Since. 1.0.0-beta

Returns

i64

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:1416

See also