Type Alias HumanDateTimeInputOptions

HumanDateTimeInputOptions: {
    input: string;
    referenceDate?: Date;
    timezone: string;
}

Type declaration

  • input: string

    The human-readable input to parse, a couple of example include:

    • "tomorrow at 3pm"
    • "at 5pm"
    • "from 3pm to 5pm"
    • "next week"
    • "in 2 hours"
    • "next month"
    • "next year"
  • OptionalreferenceDate?: Date

    The reference date to parse the input relative to

  • timezone: string

    The timezone to parse the input in, e.g. "America/New_York"