On Friday, 30 January 2015 13:09:32 UTC+11, Sergei G wrote:
I store date time using a simple call:
time_value.String()
It works well and stores data like this:
2011-09-04 15:54:42 -0700 PDT
Now, I need to parse that string back to time.Time struct:
time.Parse(layout, string)
What layout should I pass?
Why do I even need to pass layout, if I used default layout to generate a
string in the 1st place?
--I store date time using a simple call:
time_value.String()
It works well and stores data like this:
2011-09-04 15:54:42 -0700 PDT
Now, I need to parse that string back to time.Time struct:
time.Parse(layout, string)
What layout should I pass?
Why do I even need to pass layout, if I used default layout to generate a
string in the 1st place?
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.