ascii-live/frames/time.go
2023-10-08 17:24:39 +11:00

18 lines
269 B
Go

package frames
import "time"
var Clock = FrameType{
GetFrame: getClockFrame,
GetLength: getClockLength,
GetSleep: DefaultGetSleep(),
}
func getClockFrame(i int) string {
t := time.Now().Format(time.RFC3339)
return t
}
func getClockLength() int {
return 0
}