apache / apache/arrow

[R] Implement lubridate's parsers with hour, minute, and second components

Open
#31,775 0 comments 0 reactions 0 assignees View on GitHub
Component: R Type: task
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 20h
Merged PRs (30d)
94

Description

Parse periods with hour, minute, and second components:
ms() hm() hms()

`lubridate` make a distinction between duration and period objects.
> Durations
>
> Durations measure the exact amount of time that occurs between two instants. This can create unexpected results in relation to clock times if a leap second, leap year, or change in daylight savings time (DST) occurs in the interval.
>
> Periods
>
> Periods measure the change in clock time that occurs between two instants. Periods provide robust predictions of clock time in the presence of leap seconds, leap years, and changes in DST.

Arrow does not have a class corresponding to lubridate's period class.

**Reporter**: [Dragoș Moldovan-Grünfeld](https://issues.apache.org/jira/browse/ARROW-16396) / @dragosmg

**Note**: *This issue was originally created as [ARROW-16396](https://issues.apache.org/jira/browse/ARROW-16396). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start by locating the R bindings for the time or period parsers and compare their existing support with lubridate's ms(), hm(), and hms() functions. Confirm how Arrow represents these values before deciding where parsing belongs. Done means the three parsers accept hour, minute, and second components and have coverage for the supported period behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.