Date & time
Helpers around Luxon DateTime for locale-aware formatting and time-of-day classifications such as day periods, seasons, moon phases and zodiac signs.
All formatters honour the user's locale via DateTime.toLocaleString and the classification helpers expose narrow string-literal return types you can use in your own type unions.
Formatting
formatDate— long localized date (year, month, day).formatDateFull— weekday + day + month, no year.formatDateTime— long date withHH:mmtime.formatMonth— long month name.formatMonthYear— long month name + year.formatTime—HH:mmtime only.
Periods
getCircadianPhase— biological rhythm phase (alert, focused, sleep, wind down).getDayPeriod— coarse part of the day (morning, afternoon, evening, night).getDayPeriodRange— start and endDateTimefor a day period.getWorkdayPeriod— work, break or off based on weekday and hour.
Calendar & nature
getMoonPhase— moon phase for a date using Conway's algorithm.getSeason— season for a country and date (hemisphere aware).getSeasonalMood— mood label derived from a season.getZodiacSign— Western zodiac sign for a birth date.
Predicates
isToday— checks whether aDateTimerefers to the same calendar day as a reference.