Skip to content

Modern Chrono LocalDate Quarter

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Date and Time (Chrono) › Chrono Date and Time › LocalDate.Quarter

LocalDate.Quarter

Returns the calendar quarter, 1 to 4.

Syntax

LocalDate.Quarter

Examples

#import "std/chrono"
using chrono

print LocalDate( 2026, 1, 1 ).Quarter       '' 1
print LocalDate( 2026, 8, 13 ).Quarter      '' 3
print LocalDate( 2026, 12, 31 ).Quarter     '' 4

'' Calendar quarters, 1 to 4. A fiscal year that does not start in
'' January is a business rule, not a calendar one.

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

Clone this wiki locally