Documentation
¶
Index ¶
- Constants
- func Since(t Time) time.Duration
- type Time
- func (t Time) Add(d time.Duration) Time
- func (t Time) After(u Time) bool
- func (t Time) Before(u Time) bool
- func (t Time) Equal(u Time) bool
- func (t *Time) IsZero() bool
- func (t Time) MarshalJSON() ([]byte, error)
- func (t *Time) Scan(v interface{}) error
- func (t Time) String() string
- func (t Time) StringSource() string
- func (t *Time) UnmarshalJSON(data []byte) (err error)
- func (t Time) Value() (driver.Value, error)
Constants ¶
View Source
const TimeFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Time ¶
func (Time) Equal ¶
Equal reports whether t and u represent the same time instant. Two times can be equal even if they are in different locations. For example, 6:00 +0200 and 4:00 UTC are Equal. See the documentation on the Time type for the pitfalls of using == with Time values; most code should use Equal instead.
func (Time) MarshalJSON ¶
func (Time) StringSource ¶
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.