From 6e2cb00008cbf09e556b00f87603797fcaa47e09 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 16 Apr 2018 05:37:14 -0700 Subject: Depenancy upgrades and movign to dep. (#8630) --- vendor/github.com/jehiah/go-strftime/README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/jehiah/go-strftime/README.md') diff --git a/vendor/github.com/jehiah/go-strftime/README.md b/vendor/github.com/jehiah/go-strftime/README.md index 8eb240384..10b06f4af 100644 --- a/vendor/github.com/jehiah/go-strftime/README.md +++ b/vendor/github.com/jehiah/go-strftime/README.md @@ -1,4 +1,26 @@ go-strftime =========== -go implementation of strftime \ No newline at end of file +go implementation of strftime + +## Example + +``` +package main + +import ( + "fmt" + "time" + + strftime "github.com/jehiah/go-strftime" +) + +func main() { + t := time.Unix(1340244776, 0) + utc, _ := time.LoadLocation("UTC") + t = t.In(utc) + fmt.Println(strftime.Format("%Y-%m-%d %H:%M:%S", t)) + // Output: + // 2012-06-21 02:12:56 +} +``` -- cgit v1.2.3-1-g7c22