Thank you. This is helpful. I am going to replace : with . first.
On Tuesday, September 13, 2016 at 9:09:31 AM UTC+5:30, Caleb Spare wrote:
>
> As Dave said, you should check the error, but unfortunately I think
> you'll find that time.Parse doesn't handle fractional seconds that use
> a charact
As Dave said, you should check the error, but unfortunately I think
you'll find that time.Parse doesn't handle fractional seconds that use
a character other than . as a decimal separator.
One possible workaround would be to replace all the : with . first:
https://play.golang.org/p/h_IMQxtoVI
-Ca
You're ignoring the error from time.Parse, that will tell you what went wrong.
--
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+unsubscr...@googlegrou
Hi,
I am trying to parse time coming in "6/9/15 15:54:04:393 CST" format. Note
: before millisecond. When there is dot before millisecond, time.parse is
working fine.. but when there is : before millisecond, time.parse does not
work. am I missing anything?
I tried the following
package main