ascii-live/frames/time.go
2019-11-20 19:44:55 +11:00

17 lines
238 B
Go

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