🌳
pt0/sharedF/timeF/Date1TimeF.mts
1import { DateTime, Duration, Interval, Settings } from "luxon";
3export { Duration as LuxDuration, DateTime as LuxDt, Settings as LuxSettings, Interval as LuxInt }
5export const dtFromIso = (dtStr: string | undefined) => {
6 if (!dtStr) return
7 return DateTime.fromISO(dtStr)
8}
10export const dtFromFmt = (dtStr: string, formatStr: string) => {
11 return DateTime.fromFormat(dtStr, formatStr)