123456789101112131415161718192021 |
- package tfelem
- import (
- "git.swzry.com/zry/YAGTF/yagtf/utils"
- "time"
- )
- type SecondElement struct {
- }
- func (this *SecondElement) ExpectedSize() int {
- return 2
- }
- func (this *SecondElement) PrintElement(t time.Time) string {
- return utils.GetFilledNumberWithTruncate(t.Second(), 2)
- }
- func NewSecondElement() *SecondElement {
- return &SecondElement{}
- }
|