1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add the ability to get BambooHR away tomorrow

This commit is contained in:
Chris Cummer
2018-04-09 13:30:21 -07:00
committed by Chris Cummer
parent 7072820967
commit 10142ebddc
2 changed files with 13 additions and 6 deletions

View File

@@ -72,9 +72,12 @@ func PrettyDate(dateStr string) string {
return fmt.Sprint(newTime.Format("Jan 2, 2006"))
}
func Today() string {
localNow := time.Now().Local()
return localNow.Format("2006-01-02")
func Today() time.Time {
return time.Now().Local()
}
func Tomorrow() time.Time {
return Today().AddDate(0, 0, 1)
}
func ToInts(slice []interface{}) []int {