Re: [go-nuts] Re: How to create UTC date without extra UTC string

2020-09-23 Thread Marcin Romaszewicz
See https://golang.org/pkg/time/#Time.Format Here's how to use it. I think this is exactly what you want: https://play.golang.org/p/3r0TFtOmtqF On Wed, Sep 23, 2020 at 11:43 AM Alex Mills wrote: > My guess, is that a starting place would be something like: > > > *var s = time.Now().UTC().String

[go-nuts] Re: How to create UTC date without extra UTC string

2020-09-23 Thread Alex Mills
My guess, is that a starting place would be something like: *var s = time.Now().UTC().String()[0:24]* an example of which looks like: "2020-09-23 18:41:43.1568" so I guess I just to know if there is a reliable way to parse that string back into a date using multiple programming languages.