mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
18 lines
248 B
Go
18 lines
248 B
Go
package bamboohr
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
func Fetch() []Item {
|
|
client := NewClient()
|
|
result := client.Away("timeOff", today(), today())
|
|
|
|
return result
|
|
}
|
|
|
|
func today() string {
|
|
localNow := time.Now().Local()
|
|
return localNow.Format("2006-01-02")
|
|
}
|