Skip to content

time.Now().Unix() returns same unix time on every run  #104

Closed
@aman00323

Description

@aman00323
  • I have been trying to use time. Now().Unix() but on every run, it returns the same timestamp.

  • Do we have to explicitly specify the timezone to be followed?

  • Here is below example that I was expecting to run

https://goplay.tools/snippet/9E6tmxLJs2u

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions