Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a timeline type for relative time #8635

Open
emilk opened this issue Jan 10, 2025 · 0 comments
Open

Add a timeline type for relative time #8635

emilk opened this issue Jan 10, 2025 · 0 comments
Labels
🏹 arrow concerning arrow 🔩 data model enhancement New feature or request

Comments

@emilk
Copy link
Member

emilk commented Jan 10, 2025

We currently have two time types:

  • Sequence
  • Temporal

The problem is that the temporal type is used both for absolute times (2024-01-10 09:44:01Z) and relative times (+32m 12s).
Because of this problem, relative times will show up as 1970-01-01 00:32:12Z in arrow formatting.

Relative times are useful for "time since robot started" or whatever.

I suggest we split Temporal into absolute and relative. The arrow datatype would then become:

  • Sequence - > DataType::Int64
  • NanosSinceEpoch - > DataType::Timestamp(TimeUnit::Nanosecond
  • NanosRelative - > DataType::Duration64(TimeUnit::Nanosecond)

(with reservation for actual names)

@emilk emilk added enhancement New feature or request 🔩 data model 🏹 arrow concerning arrow labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏹 arrow concerning arrow 🔩 data model enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant