Skip to content

time: Now is not accurate on playground #10663

@kgao

Description

@kgao

Context: /flowcontrol/10

Today is Friday, May 1st 2015...
It output wrong time use go's time package.


import (
"fmt"
"time"
)

func main() {
today := time.Now().Weekday()
fmt.Println("When's Today?", today)
t := time.Now()
fmt.Println("What's the time now?", t)
}


When's Today? Tuesday
What's the time now? 2009-11-10 23:00:00 +0000 UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions