date-vir - v8.5.0
    Preparing search index...

    Function parseInputElementValue

    • Read either an HTMLInputElement's value directly, or the value string retrieved from an HTMLInputElement. Handles both type="date" and type="time" elements.

      Type Parameters

      • const SpecificTimezone extends string

      Parameters

      • elementOrValue: string | Readonly<Pick<HTMLInputElement, "value">> | null | undefined
      • timezone: SpecificTimezone

      Returns
          | {
              day: DayOfMonth;
              hour: Hour;
              millisecond: number;
              minute: Minute;
              month: MonthNumber;
              second: Minute;
              timezone: SpecificTimezone;
              year: number;
          }
          | undefined

      • {
            day: DayOfMonth;
            hour: Hour;
            millisecond: number;
            minute: Minute;
            month: MonthNumber;
            second: Minute;
            timezone: SpecificTimezone;
            year: number;
        }
        • day: DayOfMonth

          A day of the month: 1-31 depending on the month

        • hour: Hour

          Hour of the day in 24 time: 0-23

        • millisecond: number

          Millisecond of the second: 0-999

        • minute: Minute

          Minute of the hour: 0-59

        • month: MonthNumber

          A month of the year: 1-12

        • second: Minute
        • timezone: SpecificTimezone
        • year: number

          The full, four digit year.

          2023;
          
      • undefined