You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

12 lines
206 B

package grmi
import (
"fmt"
"time"
)
type DateTime time.Time
func (self DateTime) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("\"%s\"", time.Time(self).Format("20060102150405"))), nil
}