[go-nuts] Re: time representation to use with javascript

2016-10-11 Thread Caleb Doxsey
One thing you could try is to use two ints. One to represent seconds and the other nanoseconds. This is what protobuf does: https://github.com/golang/protobuf/blob/master/ptypes/timestamp.go. An ISO8601 string works too. On Monday, October 10, 2016 at 11:22:48 PM UTC-4, bsr wrote: > > Hello, >

[go-nuts] Re: time representation to use with javascript

2016-10-10 Thread bsr
Just saw that time implements MarshalJSON, so may be string output may be better. https://golang.org/src/time/time.go?s=26891:26934#L918 On Monday, October 10, 2016 at 11:22:48 PM UTC-4, bsr wrote: > > Hello, > > I store all time values in UTC, and since it runs on google app engine, > the preci