Documentation ¶
Overview ¶
Package time provides time.Time wrappers for the skylark embedded language.
Index ¶
- Variables
- func Delta(_ *skylark.Thread, _ *skylark.Builtin, args skylark.Tuple, ...) (skylark.Value, error)
- func Now(_ *skylark.Thread, _ *skylark.Builtin, args skylark.Tuple, ...) (skylark.Value, error)
- type Duration
- func (d Duration) Binary(op syntax.Token, y skylark.Value, side skylark.Side) (skylark.Value, error)
- func (d Duration) CompareSameType(op syntax.Token, y skylark.Value, depth int) (bool, error)
- func (d Duration) Freeze()
- func (d Duration) Hash() (uint32, error)
- func (d Duration) String() string
- func (d Duration) Truth() skylark.Bool
- func (d Duration) Type() string
- type Time
- func (t Time) Binary(op syntax.Token, y skylark.Value, side skylark.Side) (skylark.Value, error)
- func (t Time) CompareSameType(op syntax.Token, y skylark.Value, depth int) (bool, error)
- func (t Time) Freeze()
- func (t Time) Hash() (uint32, error)
- func (t Time) String() string
- func (t Time) Truth() skylark.Bool
- func (t Time) Type() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Zero = Time(time.Time{})
Zero is the zero time.
Functions ¶
Types ¶
type Duration ¶
Duration represents a span of time.
func (Duration) Binary ¶
func (d Duration) Binary(op syntax.Token, y skylark.Value, side skylark.Side) (skylark.Value, error)
Binary implements binary operators.
func (Duration) CompareSameType ¶
CompareSameType compares this Time to another.
type Time ¶
Time is the type of a Skylark time.Time.
func (Time) CompareSameType ¶
CompareSameType compares this Time to another.
Click to show internal directories.
Click to hide internal directories.