Module org.holiday.calendar.western
Class NewYearsEveEarlyClose
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.uk.NewYearsEveEarlyClose
Observance of the London Stock Exchange's New Year's Eve half-day close
(December 31). When December 31 falls on a Saturday or Sunday, the
half-day session is shifted to the preceding Friday, since the market is
already closed on the natural date.
Verified against the LSE's official business days notice (londonstockexchange.com/equities-trading/business-days), which lists e.g. Friday 29 December 2028 as a "New Year's Holiday half day" (markets closing process commencing from 12:30 London time) — December 31, 2028 itself falls on a Sunday, confirming the shift-to-preceding-Friday rule.
- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDatecomputeDate(int year) Compute the date for this observance in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, isValidYear, 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
-