Skip to content

Parse marin UpdatedAgo field to secsSinceReport #38

Description

@youngj

Marin Transit's API returns a UpdatedAgo field for each vehicle which may look like "2s ago" or "28m55s ago". This string should be parsed into an integer for the secsSinceReport field.

Activity

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