diff options
author | Jackson Taylor <jtaylormuffins@gmail.com> | 2020-10-02 23:10:52 -0400 |
---|---|---|
committer | Jackson Taylor <jtaylormuffins@gmail.com> | 2020-10-02 23:10:52 -0400 |
commit | 3b25b5bc0254c7462555c9911c67266627428795 (patch) | |
tree | cb01d1fe194999925f452651230d46b1be663d2b /dateModule.go | |
parent | cdeb1de96fbd01865497b481aa00c4032c446d66 (diff) |
Diffstat (limited to 'dateModule.go')
-rw-r--r-- | dateModule.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/dateModule.go b/dateModule.go deleted file mode 100644 index 1fe60fa..0000000 --- a/dateModule.go +++ /dev/null @@ -1,17 +0,0 @@ -package main - -import ( - "fmt" - "strconv" - "time" -) - -type DateModule struct { -} - -// getDate formats a string for the status bar -func (_ DateModule) GetInfo() (string, error) { - now := time.Now() - // return now.Weekday().String() + " " + now.Month().String()[0:3] + " " + now.Year(), nil - return fmt.Sprintf("%s %s %s %s", now.Weekday(), now.Month().String()[0:3], strconv.Itoa(now.Day()), strconv.Itoa(now.Year())), nil -} |