Hi
I playing with a rest api, using golang http.Client. One of the responses I get is a timestamp in UNIX time.
The input is 13 numbers long, I cant convert it to time using time.Unix, It only takes 10 digits.
I have solved it this way:
https://play.golang.org/p/foCLoASas18
- Convert the input to a string.
2 Only take 10 chars. - Convert it back to ints.
- Convert to unix time.
Any better ideas to solve this?