timeparser
provides flexibility in parsing time from string for Golang. It allows either RFC3339
or YMD
.
Go >= 1.17
go get go.nhat.io/timeparser
Parse a time in string
to time.Time
. s
could be RFC3339
or YMD
.
Parse a time period from string
to time.Time
.
from
and to
could be RFC3339
or YMD
. It is nil
if the string is empty.
If this project help you reduce time to develop, you can give me a cup of coffee :)
or scan this