Re: [go-nuts] parsing millisecond coming after colon

2016-09-13 Thread Geetha Adinarayan
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

Re: [go-nuts] parsing millisecond coming after colon

2016-09-12 Thread Caleb Spare
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

[go-nuts] parsing millisecond coming after colon

2016-09-12 Thread Dave Cheney
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

[go-nuts] parsing millisecond coming after colon

2016-09-12 Thread Geetha Adinarayan
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