diff options
Diffstat (limited to 'vendor/github.com/Azure/go-autorest/autorest/date/utility.go')
-rw-r--r-- | vendor/github.com/Azure/go-autorest/autorest/date/utility.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/Azure/go-autorest/autorest/date/utility.go b/vendor/github.com/Azure/go-autorest/autorest/date/utility.go new file mode 100644 index 000000000..207b1a240 --- /dev/null +++ b/vendor/github.com/Azure/go-autorest/autorest/date/utility.go @@ -0,0 +1,11 @@ +package date + +import ( + "strings" + "time" +) + +// ParseTime to parse Time string to specified format. +func ParseTime(format string, t string) (d time.Time, err error) { + return time.Parse(format, strings.ToUpper(t)) +} |