Added more error handling and necessary functions
This commit is contained in:
2
date.go
2
date.go
@@ -13,7 +13,7 @@ type Date struct {
|
||||
// DateTime formats a time.Time to string formated as defined by RFC3339. It
|
||||
// returns a string.
|
||||
func DateTime(t time.Time) string {
|
||||
return string(t.Format(time.RFC3339))
|
||||
return t.Format(time.RFC3339)
|
||||
}
|
||||
|
||||
// NewDate creates a new Date. It returns a *Date.
|
||||
|
Reference in New Issue
Block a user