UNPKG

date-vir

Version:

Easy and explicit dates and times.

20 lines (19 loc) 973 B
import { DateTime } from 'luxon'; import { type Timezone } from '../timezone/timezones.js'; import { type FullDate } from './full-date-shape.js'; /** * Converts a {@link FullDate} object into a Luxon DateTime library. This is only needed if you need * complex operations on dates. It does, however, internally power a lot of date-vir functionality * as it uses the Luxon library for conversions between timezones. * * @category Internal */ export declare function toLuxonDateTime(fullDateInput: Readonly<FullDate>): DateTime<true>; /** * Convert a Luxon DateTime object into a {@link FullDate} instance. Used internally inside of * date-vir, but could be helpful if you need it. Usually you should prefer using the * `createFullDate` function instead. * * @category Internal */ export declare function parseLuxonDateTime<const SpecificTimezone extends Timezone>(dateTimeInput: Readonly<DateTime>, forcedTimezone?: SpecificTimezone): FullDate<SpecificTimezone>;