Overview of Brick\DateTime core classes
mainThe library provides a set of immutable classes in the Brick\DateTime namespace that follow the ISO 8601 standard. Key concepts include:
DayOfWeek: An enum representing days (e.g., Monday).Duration: Time measured in seconds and nanoseconds.Instant: A precise point in time (nanosecond precision).Interval: A period between twoInstantobjects.LocalDate: An isolated date (e.g.,2014-08-31).LocalDateRange: An inclusive range of local dates.LocalDateTime: A date-time without a time-zone.LocalTime: An isolated time.Month: An enum representing months.MonthDay: A month and day combination without a year.Period: A date-based amount of time (e.g., '2 years, 3 months').TimeZoneOffset: An offset-based time-zone (e.g.,+01:00).TimeZoneRegion: A region-based time-zone (e.g.,Europe/London).Year: A year in the proleptic calendar.YearMonth: A year and month combination.ZonedDateTime: A date-time with a time-zone (conceptually equivalent to native PHPDateTime).