Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13548

[C++] Implement datediff kernel

    XMLWordPrintableJSON

Details

    Description

      Add a kernel to compute the number of years, months, weeks, days, hours, minutes, (micro/milli/nano)seconds, or quarters between two timestamps.

      This should act like SQL's DATEDIFF (SQL Server). Pandas doesn't have a convenient equivalent except in the case of days (pd.Timedelta.days) but it can be calculated using Timestamp.to_period.

      We have hinnant's date library vendored and this should hopefully be implementable with that.

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              lidavidm David Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 9h 40m
                  9h 40m