Documentation ¶
Index ¶
- Constants
- func Date(t time.Time) time.Time
- func ParseWithTimeZone(layout string, value string, timezone TimeZone) (time.Time, error)
- func Today() time.Time
- type TimeZone
- type UTCTime
- func (dt *UTCTime) After(u time.Time) bool
- func (dt *UTCTime) AfterEpoch() bool
- func (dt *UTCTime) Before(u time.Time) bool
- func (dt *UTCTime) BeforeEpoch() bool
- func (dt *UTCTime) Format(layout string) string
- func (dt UTCTime) MarshalJSON() ([]byte, error)
- func (dt *UTCTime) Unix() int64
- func (dt *UTCTime) UnmarshalJSON(p []byte) error
Constants ¶
View Source
const (
DateTimeFormatLayout = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func ParseWithTimeZone ¶
Types ¶
type UTCTime ¶
func (*UTCTime) AfterEpoch ¶
func (*UTCTime) BeforeEpoch ¶
func (UTCTime) MarshalJSON ¶
func (*UTCTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.