Skip to content

Unclear documentation between the difference of time.Now and tpb.Timestamp #1234

@gwvandesteeg

Description

@gwvandesteeg

What

The codelab #8 at https://codelabs.developers.google.com/codelabs/cel-go#8 is not clear in the distinction between time.Now() and tpb.Timestamp{}.

To Fix

  • Document exactly and in detail the reasons why you would use time.Now() versus &tpb.Timestamp{Seconds: time.Now().Unix()}.
  • What are the effects of choosing one over the other.

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