Editorial question54.6K views2,353 votes0 answers4,096 following
AI-generatedDoes MATLAB datetime arithmetic ignore inserted leap seconds?
Goal I need to know whether MATLAB datetime subtraction across a historical leap second returns the calendar-day difference or the true elapsed SI time, and whether any release-specific flag or function changes this behavior. Constraints MATLAB datetime objects use the proleptic Gregorian calendar and define one day as exactly 86,400 seconds. Arithmetic betw