Skip to content

Modern Chrono DateTime DaysInYear

Paul Squires edited this page Oct 19, 2026 · 1 revision

Home › Date and Time (Chrono) › Chrono Date and Time › DateTime.DaysInYear

DateTime.DaysInYear

Returns 365 or 366, the number of days in a year.

Syntax

DateTime.DaysInYear( y )

Examples

#import "std/chrono"
using chrono

print DateTime.DaysInYear( 2025 )       '' 365
print DateTime.DaysInYear( 2024 )       '' 366

Library: Chrono Date and Time
Category: Date and Time (Chrono)
Documented under: The Members

Clone this wiki locally