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

timespan() should be more flexible #1090

Open
jameswilburlewis opened this issue Feb 12, 2025 · 0 comments
Open

timespan() should be more flexible #1090

jameswilburlewis opened this issue Feb 12, 2025 · 0 comments
Labels
enhancement New feature or request plotting pytplot Issues involving the pytplot package

Comments

@jameswilburlewis
Copy link
Contributor

jameswilburlewis commented Feb 12, 2025

This may be a departure from strict IDL compatibility, but it would be useful if timespan() had more flexible time specification options:

  1. Allow common abbreviations for time units -- currently only "days",. "hours", "minutes" and "seconds" are recognized. It would
    be easy to also recognize "day", "d", "second", "secs",. "sec", "s", etc. as synonyms

  2. Allow specification of a time range as an array (of strings, floats, np.datetimes, python datetimes), rather than just start time and duration

  3. Allow for resetting the timespan, as if it had never been called

@jameswilburlewis jameswilburlewis added enhancement New feature or request plotting pytplot Issues involving the pytplot package labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plotting pytplot Issues involving the pytplot package
Projects
None yet
Development

No branches or pull requests

1 participant