2019-11-19 05:51:48 +00:00
|
|
|
package frames
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
var Clock = FrameType{
|
|
|
|
GetFrame: getClockFrame,
|
|
|
|
GetLength: getClockLength,
|
2023-10-08 06:24:39 +00:00
|
|
|
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
|
|
|
|
}
|