Duration constructs a duration constant from nanoseconds. Positive values represent forward durations, negative values represent backward durations.
(nanos int64)
| 328 | // Duration constructs a duration constant from nanoseconds. |
| 329 | // Positive values represent forward durations, negative values represent backward durations. |
| 330 | func Duration(nanos int64) Constant { |
| 331 | return Constant{DurationType, "", nanos, nil, nil} |
| 332 | } |
| 333 | |
| 334 | // Pair constructs a pair constant. Parts can only be accessed in transforms. |
| 335 | func pair(tpe ConstantType, fst, snd *Constant) Constant { |
no outgoing calls