Skip to content

ads-github-show-rate-limits: allow user to request utc date output #6

@salewski

Description

@salewski

The current version of the 'ads-github-show-rate-limits' tool by default shows the "reset date" as the number of seconds since the Unix epoch (which is roughly defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970). This is how the data is retrieved from the upstream GitHub v3 API, and is useful for piping the data to downstream tools.

If the '-h' (--human-readable) option is specified, then the date is shown in a more readable format of the user's localtime (e.g., "2016-05-22 12:33:42-04:00").

While it is useful that the above format shows the offset from UTC, it would also be useful to have the formatted date shown directly in UTC if requested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution:fixedRead as "fixed OR done OR implemented OR answered"status:resolvedtype:featureAdds a new capability or behavioral property

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions