import { DateTime } from 'luxon' ; internal export interface CalendarObject { year : number ; month : number ; day : number ; hour ? : number ; } type CalendarUnit = 'days' ; internal export const timeObjFromCalendarObj = ( yearMonthDayHour , timeZone ) => DateTime . fromObject ( { ... yearMonthDayHour , zone : timeZone } ) ; internal export const timeObjFromEpochSeconds = ( timeZone , seconds ) => DateTime . fromSeconds ( seconds , { zone : timeZone } ) ; internal export const timeObjToSeconds = ( t ) => t . toSeconds ( ) ; internal export const timeObjToWeekday = ( t ) => t . weekday ; internal export const timeObjToYear = ( t ) => t . year ; internal export const addTimeToObj = ( obj , unit , count ) => obj . plus ( { [ unit ] : count } ) ;