Documentation ¶
Index ¶
- Constants
- Variables
- func ToTime(t DateTime) time.Time
- type DateTime
- func (t DateTime) After(u time.Time) bool
- func (t DateTime) Before(u time.Time) bool
- func (t DateTime) Equal(u time.Time) bool
- func (t DateTime) EqualMinTime() bool
- func (t DateTime) Format(format string) string
- func (t DateTime) MarshalJSON() ([]byte, error)
- func (t DateTime) Now() DateTime
- func (t DateTime) Unix() int64
- func (t *DateTime) UnmarshalJSON(data []byte) (err error)
Constants ¶
View Source
const ( TimeFormart = "2006-01-02 15:04:05" TimeFormart2 = "2006-01-02 15:04:05.999" )
Variables ¶
View Source
var LOC, _ = time.LoadLocation("Asia/Shanghai")
Functions ¶
Types ¶
type DateTime ¶
func ToDateTime ¶
func (DateTime) EqualMinTime ¶
func (DateTime) MarshalJSON ¶
func (*DateTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.