About go-playground

58 views
Skip to first unread message

Sahil Agrawal

unread,
Jan 22, 2020, 12:20:38 AM1/22/20
to golan...@googlegroups.com
I tried to run a time script. But according to the code, it should return a very long list of date range. But it failed to do so. Can you please give me an explanation or some documentation which specifies that golang doesn't support time values (like it doesn't support for file handling operations.)

PFA file



Thanks and Regards,
Sahil Agrawal

time.go

Lutz Horn

unread,
Jan 22, 2020, 12:59:55 AM1/22/20
to golan...@googlegroups.com
Note that `now := time.Now().Local()` on the playground always is `2009-11-10 23:00:00 +0000 UTCZ`. Your loop works correctly and ends with `[2009-11-09 2009-11-16]`.

Try to run it locally and see.

Lutz

________________________________________
Von: golan...@googlegroups.com <golan...@googlegroups.com> im Auftrag von Sahil Agrawal <sahil....@aquasec.com>
Gesendet: Mittwoch, 22. Januar 2020 06:18
An: golan...@googlegroups.com
Betreff: [go-nuts] About go-playground
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com<mailto:golang-nuts...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/AM5PR03MB3057DBC2104DF2379A7DF3E6FA0C0%40AM5PR03MB3057.eurprd03.prod.outlook.com<https://groups.google.com/d/msgid/golang-nuts/AM5PR03MB3057DBC2104DF2379A7DF3E6FA0C0%40AM5PR03MB3057.eurprd03.prod.outlook.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages