Documentation ¶
Index ¶
- type TimeStamp
- func (ts TimeStamp) Add(seconds int64) TimeStamp
- func (ts TimeStamp) AddDuration(interval time.Duration) TimeStamp
- func (ts TimeStamp) AsTime() (tm time.Time)
- func (ts TimeStamp) AsTimePtr() *time.Time
- func (ts TimeStamp) Format(f string) string
- func (ts TimeStamp) FormatLong() string
- func (ts TimeStamp) FormatShort() string
- func (ts TimeStamp) IsZero() bool
- func (ts TimeStamp) Year() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeStamp ¶
type TimeStamp int64
TimeStamp defines a timestamp
func (TimeStamp) AddDuration ¶
AddDuration adds time.Duration and return sum
func (TimeStamp) FormatLong ¶
FormatLong formats as RFC1123Z
func (TimeStamp) FormatShort ¶
FormatShort formats as short
Click to show internal directories.
Click to hide internal directories.