August 2019
Beginner to intermediate
798 pages
17h 2m
English
When you have a time variable, it is easy to convert it into anything that is related to time or date. However, the main problem is when you have a string and you want to see whether this is a valid time or not. The function used for parsing time and date strings is called time.Parse() and it accepts two parameters. The first one denotes the expected format of the string that you are going to parse, whereas the second parameter is the actual string that is going to be parsed. The first parameter is composed of elements from a list of Go constants related to date and time parsing.
Read now
Unlock full access