February 2018
Intermediate to advanced
340 pages
9h 43m
English
The time package contains the Unix function which accepts two int64 arguments, and the seconds and nanoseconds of epoch time. This way, you can get the Time instance from the epoch value.
To obtain the epoch value from the Time instance, the method with the same name as the creation of Time from epoch, Unix, can be called. There is one more method called UnixNano, which returns the count of milliseconds instead of seconds.
Read now
Unlock full access