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

    Function combineDateParts

    Combine two parts of a FullDate objects into a filled-in FullDate. Note that the timezones must match for both inputs. If two complete FullDate objects are passed in, only the respective parts of each is used.

    • Type Parameters

      • const SpecificTimezone extends string

      Parameters

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

      Returns {
          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;
        
    • Parameters

      • maybeDateParts: { date?: undefined; time?: undefined }

      Returns undefined

    • Type Parameters

      • const SpecificTimezone extends string

      Parameters

      • maybeDateParts: {
            date: {
                day: DayOfMonth;
                hour?: Hour;
                millisecond?: number;
                minute?: Minute;
                month: MonthNumber;
                second?: Minute;
                timezone: SpecificTimezone;
                year: number;
            };
            time?: undefined;
        }

      Returns {
          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

      • Optionalhour?: Hour

        Hour of the day in 24 time: 0-23

      • Optionalmillisecond?: number

        Millisecond of the second: 0-999

      • Optionalminute?: Minute

        Minute of the hour: 0-59

      • month: MonthNumber

        A month of the year: 1-12

      • Optionalsecond?: Minute
      • timezone: SpecificTimezone
      • year: number

        The full, four digit year.

        2023;
        
    • Type Parameters

      • const SpecificTimezone extends string

      Parameters

      • maybeDateParts: {
            date: {
                day: DayOfMonth;
                hour?: Hour;
                millisecond?: number;
                minute?: Minute;
                month: MonthNumber;
                second?: Minute;
                timezone: SpecificTimezone;
                year: number;
            };
            time?: | {
                day?: DayOfMonth;
                hour: Hour;
                millisecond: number;
                minute: Minute;
                month?: MonthNumber;
                second: Minute;
                timezone: SpecificTimezone;
                year?: number;
            }
            | Partial<
                {
                    day: DayOfMonth;
                    hour: Hour;
                    millisecond: number;
                    minute: Minute;
                    month: MonthNumber;
                    second: Minute;
                    timezone: SpecificTimezone;
                    year: number;
                },
            >;
        }

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

      • {
            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

        • Optionalhour?: Hour

          Hour of the day in 24 time: 0-23

        • Optionalmillisecond?: number

          Millisecond of the second: 0-999

        • Optionalminute?: Minute

          Minute of the hour: 0-59

        • month: MonthNumber

          A month of the year: 1-12

        • Optionalsecond?: Minute
        • timezone: SpecificTimezone
        • year: number

          The full, four digit year.

          2023;
          
      • {
            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;
          
    • Type Parameters

      • const SpecificTimezone extends string

      Parameters

      • maybeDateParts: {
            date?: undefined;
            time: {
                day?: DayOfMonth;
                hour: Hour;
                millisecond: number;
                minute: Minute;
                month?: MonthNumber;
                second: Minute;
                timezone: SpecificTimezone;
                year?: number;
            };
        }

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

      • Optionalday?: 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

      • Optionalmonth?: MonthNumber

        A month of the year: 1-12

      • second: Minute
      • timezone: SpecificTimezone
      • Optionalyear?: number

        The full, four digit year.

        2023;
        
    • Type Parameters

      • const SpecificTimezone extends string

      Parameters

      • maybeDateParts: {
            date?:
                | {
                    day: DayOfMonth;
                    hour?: Hour;
                    millisecond?: number;
                    minute?: Minute;
                    month: MonthNumber;
                    second?: Minute;
                    timezone: SpecificTimezone;
                    year: number;
                }
                | Partial<
                    {
                        day: DayOfMonth;
                        hour: Hour;
                        millisecond: number;
                        minute: Minute;
                        month: MonthNumber;
                        second: Minute;
                        timezone: SpecificTimezone;
                        year: number;
                    },
                >;
            time: {
                day?: DayOfMonth;
                hour: Hour;
                millisecond: number;
                minute: Minute;
                month?: MonthNumber;
                second: Minute;
                timezone: SpecificTimezone;
                year?: number;
            };
        }

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

      • {
            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;
          
      • {
            day?: DayOfMonth;
            hour: Hour;
            millisecond: number;
            minute: Minute;
            month?: MonthNumber;
            second: Minute;
            timezone: SpecificTimezone;
            year?: number;
        }
        • Optionalday?: 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

        • Optionalmonth?: MonthNumber

          A month of the year: 1-12

        • second: Minute
        • timezone: SpecificTimezone
        • Optionalyear?: number

          The full, four digit year.

          2023;
          
    • Type Parameters

      • const SpecificTimezone extends string

      Parameters

      Returns MaybeDatePart<SpecificTimezone>