 ALIAS: first-day-of-lent ash-wednesday
 
 HOLIDAY: fat-tuesday ash-wednesday 1 days time- ;
-
-HOLIDAY: good-friday easter 2 days time- ;
 
 HOLIDAY: tax-day april 15 >>day ;
 


HOLIDAY: thanksgiving-day november 3 thursday-of-month ;
HOLIDAY-NAME: thanksgiving-day us-federal "Thanksgiving Day"

HOLIDAY: christmas-day december 25 >>day ;
HOLIDAY-NAME: christmas-day world "Christmas Day"
HOLIDAY-NAME: christmas-day us-federal "Christmas Day"

HOLIDAY: belly-laugh-day january 24 >>day ;


combinators.short-circuit kernel math sequences ;
IN: calendar.holidays.us

SINGLETONS: us us-federal us-market ;

HOLIDAY: new-years-day january 1 >>day ;
HOLIDAY-NAME: new-years-day world "New Year's Day"
HOLIDAY-NAME: new-years-day us-federal "New Year's Day"
HOLIDAY-NAME: new-years-day us-market "New Year's Day"

<PRIVATE

: adjust-federal-holiday ( timestamp -- timestamp )
    {
        ! Don't adjust to Dec 31
        { [ dup { [ dup new-years-day same-day? ] [ saturday? ] } 1&& ] [ ] }
        { [ dup saturday? ] [ -1 days (time+) ] }
        { [ dup sunday? ] [ 1 days (time+) ] }
        [ ]
