Skip to content

API Core: Simplify from_rfc3339 methods #7676

Closed

Description

@crwilcox

from_rfc3339 doesn't handle Nanos, but from_rfc3339_nanos does. Would it make sense to use the from_rfc3339_nanos implementation for both? It seems to me we could simplify the interface by having one from rfc3339 method.

https://github.com/googleapis/google-cloud-python/blob/master/api_core/google/api_core/datetime_helpers.py#L117

https://github.com/googleapis/google-cloud-python/blob/master/api_core/google/api_core/datetime_helpers.py#L130

Activity

  1. added
    triage me
    🚨
    on Apr 8, 2019
  2. added
    type: cleanup
    and removed
    🚨
    triage me
    on Apr 16, 2019
  3. self-assigned this
    on Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: coretype: cleanup

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions