summaryrefslogtreecommitdiff
path: root/dateModule.go
diff options
context:
space:
mode:
authorJackson Taylor <jtaylormuffins@gmail.com>2020-03-31 22:35:25 -0400
committerJackson Taylor <jtaylormuffins@gmail.com>2020-03-31 22:35:25 -0400
commitd70fe40f9de2a10ccd5892b7886a559b181748cc (patch)
tree7888b8c0275eb8e09b28b10059f169f652733e0b /dateModule.go
parente7f0f1cb4d0f326327484cd10d3a36a5a31b161d (diff)
Add initial files for status bar
Add main function loop Add a battery module for laptops Add a date module
Diffstat (limited to 'dateModule.go')
-rw-r--r--dateModule.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/dateModule.go b/dateModule.go
new file mode 100644
index 0000000..baabe5a
--- /dev/null
+++ b/dateModule.go
@@ -0,0 +1,16 @@
+package main
+
+import (
+ "time"
+)
+
+type DateModule struct {
+}
+
+// getDate formats a string for the status bar
+func (_ DateModule) GetInfo() (string, error) {
+ now := time.Now()
+ // return string([]rune(now.Weekday().String()[0:3]))
+ // return now.Format(time.Stamp)
+ return string([]rune(now.Month().String())) + " " + now.Format(time.Kitchen), nil
+}