Module org.holiday.calendar.western
Class NewYearsEveEarlyClose
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.au.NewYearsEveEarlyClose
Observance of the Australian Securities Exchange's New Year's Eve half-day
close (December 31). ASX runs a shortened trading session (normal trading
ceasing at 14:10 Sydney time) on December 31 whenever that date falls on a
weekday; when December 31 falls on a Saturday or Sunday, the half-day close
is not observed that year at all — unlike the London Stock Exchange (see
org.holiday.calendar.observance.uk.NewYearsEveEarlyClose), ASX does
not shift the half-day session to the preceding Friday. See
AsxEveEarlyClose for the shared eligibility logic (a different
use of isValidYear than its algorithm-validity use in
WesternEaster/OrthodoxEaster — see
org.holiday.calendar.observance.ca.ChristmasEveEarlyClose's javadoc
for the same note).
Verified against ASX's own "ASX Trade trading hours for Christmas and New Year" notices (asxonline.com): the 2025/2026 notice confirms the same 14:10 Sydney close applies to both December 24 and December 31.
- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final LocalDatecomputeDate(int year) Compute the date for this observance in the given year.protected final booleanisValidYear(int year) Determine whether this observance applies in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, test
-
Constructor Details
-
NewYearsEveEarlyClose
public NewYearsEveEarlyClose()
-
-
Method Details
-
computeDate
Description copied from class:AbstractObservanceCompute the date for this observance in the given year. Only called whenAbstractObservance.isValidYear(int)returnstrue.- Specified by:
computeDatein classAbstractObservance- Parameters:
year- the year for which to compute the date- Returns:
- computed holiday date
-
isValidYear
protected final boolean isValidYear(int year) Description copied from class:AbstractObservanceDetermine whether this observance applies in the given year. Defaults totrue(all years are valid).- Overrides:
isValidYearin classAbstractObservance- Parameters:
year- the year to test- Returns:
trueif this observance applies
-