summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/spf13/cast/cast.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/spf13/cast/cast.go')
-rw-r--r--vendor/github.com/spf13/cast/cast.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/spf13/cast/cast.go b/vendor/github.com/spf13/cast/cast.go
index 9fba638d..0cfe9418 100644
--- a/vendor/github.com/spf13/cast/cast.go
+++ b/vendor/github.com/spf13/cast/cast.go
@@ -20,6 +20,11 @@ func ToTime(i interface{}) time.Time {
return v
}
+func ToTimeInDefaultLocation(i interface{}, location *time.Location) time.Time {
+ v, _ := ToTimeInDefaultLocationE(i, location)
+ return v
+}
+
// ToDuration casts an interface to a time.Duration type.
func ToDuration(i interface{}) time.Duration {
v, _ := ToDurationE(i)