Skip to content

TimeParser doesn't properly handle span/delta when later digits are found #193

Open

Description

@jbfaden

TimeParser.java doesn't properly handle when digits are found after the span modifier, for example with

$Y$m$(d;span=10)_$(Y,end)$m$d

Here the "end" digits each have a span implicitly of one, which resets the internal lsdMult. Further, this is going to cause problems with

$Y$m$(d;span=10)_$H$M$S

where the start time is identified to seconds, but the width is 10 days and the lsd is seconds. I haven't seen this case, but it seems consistent with the URI_Templates interface. (Note Autoplot/Das2 allow "span" to be an old alias for the correct "delta".)

Activity

  1. jbfaden commented on Oct 7, 2026

    @jbfaden
    MemberAuthor

    Note https://github.com/autoplot/dev/blob/master/demos/libraries/uritemplates/demoUriTemplates.jy demonstrates where the URI_Templates does handle this properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions