Skip to content

reset-cursor to absolute time #5540

@candlerb

Description

@candlerb

Is your feature request related to a problem? Please describe.
It would be handy to be able to reset-cursor to an absolute time, e.g. "start consuming from midnight". Otherwise you have to calculate the time offset, and stuff it into the command immediately.

There is a mention of the corresponding REST API call which appears to have a :timestamp parameter - if that's an absolute time, then this is just an issue with the CLI.

Describe the solution you'd like
ISO 8601 includes unambiguous ways of representing absolute and relative times.

  • PT30M - 30 minutes (relative offset)
  • P1D - one day (relative offset)
  • 1981-04-05T12:00 - absolute date/time (extended format)
  • 19810405T1200 - absolute date/time (basic format)

It should be straightforward to parse and distinguish these cases, whilst falling back to existing behaviour (10 = 10 minute offset, 2h = 2 hour offset etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staletype/featureThe PR added a new feature or issue requested a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions