Skip to content

time: Time.Before() should reuse t.sec() and u.sec() #36987

@geraldss

Description

@geraldss

Looking at the source code for Time.After() and Time.Before(), Time.After() reuses t.sec() and u.sec(), whereas Time.Before() does not and often calls each method twice.

https://golang.org/src/time/time.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions