String returns a string representation of the temporal atom.
()
| 489 | |
| 490 | // String returns a string representation of the temporal atom. |
| 491 | func (ta TemporalAtom) String() string { |
| 492 | if ta.Interval == nil || ta.Interval.IsEternal() { |
| 493 | return ta.Atom.String() |
| 494 | } |
| 495 | return ta.Atom.String() + ta.Interval.String() |
| 496 | } |
| 497 | |
| 498 | // DisplayString returns a string representation of the temporal atom using unescaped constants. |
| 499 | func (ta TemporalAtom) DisplayString() string { |