import "@formatjs/ecma402-abstract";
import "./FormatDateTimePattern.js";
import { PartitionDateTimeRangePattern } from "./PartitionDateTimeRangePattern.js";
import "./ToLocalTime.js";
export function FormatDateTimeRangeToParts(dtf, x, y, implDetails) {
	const parts = PartitionDateTimeRangePattern(dtf, x, y, implDetails);
	const result = [];
	for (const part of parts) {
		result.push({
			type: part.type,
			value: part.value,
			source: part.source
		});
	}
	return result;
}
