DisplayString returns a string representation of the temporal atom using unescaped constants.
()
| 497 | |
| 498 | // DisplayString returns a string representation of the temporal atom using unescaped constants. |
| 499 | func (ta TemporalAtom) DisplayString() string { |
| 500 | if ta.Interval == nil || ta.Interval.IsEternal() { |
| 501 | return ta.Atom.DisplayString() |
| 502 | } |
| 503 | return ta.Atom.DisplayString() + ta.Interval.String() |
| 504 | } |
| 505 | |
| 506 | // Equals returns true if two temporal atoms are equal. |
| 507 | func (ta TemporalAtom) Equals(u Term) bool { |