Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInvalidTimeFormat = errors.New("invalid time format")
)
Functions ¶
This section is empty.
Types ¶
type Time ¶
type Time interface {
// Returns Time in ISO8601 (yyyy-MM-ddThh:mm:ssZ) format as UTC.
// Returns an empty string if an impl. has TimeOptional, and the instance marked as unset.
Iso8601() string
// Same as Iso8601
Value() string
// Returns time instance
Time() time.Time
// True when the time is zero
IsZero() bool
}
type TimeImpl ¶
type TimeImpl struct {
// contains filtered or unexported fields
}
func (*TimeImpl) UpdateTime ¶
type TimeOptional ¶
type TimeOptional interface {
Time
mo_essential.Optional
}
func NewOptional ¶
func NewOptional(t time.Time) TimeOptional
Click to show internal directories.
Click to hide internal directories.