ascii-live/frames/time.go

19 lines
269 B
Go
Raw Normal View History

2019-11-19 05:51:48 +00:00
package frames
import "time"
var Clock = FrameType{
GetFrame: getClockFrame,
GetLength: getClockLength,
GetSleep: DefaultGetSleep(),
2019-11-19 05:51:48 +00:00
}
func getClockFrame(i int) string {
t := time.Now().Format(time.RFC3339)
return t
}
func getClockLength() int {
return 0
}