Documentation ¶
Index ¶
- Variables
- type Duration
- func (d Duration) Duration() time.Duration
- func (d Duration) EvalOp(op nitro.Op, operand nitro.Value) (nitro.Value, error)
- func (d Duration) FallbackEvalOp(op nitro.Op, left nitro.Value) (nitro.Value, error)
- func (d Duration) String() string
- func (d Duration) Traits() vm.Traits
- func (d Duration) Type() string
- type Location
- type Time
Constants ¶
This section is empty.
Variables ¶
View Source
var Exports = _p0.Exports{ {N: "fixed_zone", T: _p0.Func, F: _fixed_zone}, {N: "format", T: _p0.Func, F: _format}, {N: "from_unix", T: _p0.Func, F: _from_unix}, {N: "in", T: _p0.Func, F: _in}, {N: "load_location", T: _p0.Func, F: _load_location}, {N: "local", T: _p0.Func, F: _local}, {N: "now", T: _p0.Func, F: _now}, {N: "parse", T: _p0.Func, F: _parse}, {N: "to_map", T: _p0.Func, F: _to_map}, {N: "truncate", T: _p0.Func, F: _truncate}, {N: "unix", T: _p0.Func, F: _unix}, {N: "unix_nano", T: _p0.Func, F: _unix_nano}, {N: "utc", T: _p0.Func, F: _utc}, {N: "HOUR", T: _p0.Value, V: NewDuration(_p3.Hour)}, {N: "MICROSECOND", T: _p0.Value, V: NewDuration(_p3.Microsecond)}, {N: "MILLISECOND", T: _p0.Value, V: NewDuration(_p3.Millisecond)}, {N: "MINUTE", T: _p0.Value, V: NewDuration(_p3.Minute)}, {N: "NANOSECOND", T: _p0.Value, V: NewDuration(_p3.Nanosecond)}, {N: "SECOND", T: _p0.Value, V: NewDuration(_p3.Second)}, }
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
func NewDuration ¶
func (Duration) FallbackEvalOp ¶
Click to show internal directories.
Click to hide internal directories.