Refactor TmfRequest
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / TmfTimestamp.java
index 299caa5f689e2d93ac00df37ea2b5d3942e33318..0c8dfdcca16978558721f3546e088604480185e3 100644 (file)
@@ -353,6 +353,14 @@ public class TmfTimestamp implements ITmfTimestamp {
      */
     @Override
     public String toString(final TmfTimestampFormat format) {
+        // Check the border cases
+        if (equals(BIG_BANG)) {
+            return "BIG_BANG"; //$NON-NLS-1$
+        }
+        if (equals(BIG_CRUNCH)) {
+            return "BIG_CRUNCH"; //$NON-NLS-1$
+        }
+        // Format the timestamp
         try {
             ITmfTimestamp ts = normalize(0, ITmfTimestamp.NANOSECOND_SCALE);
             return format.format(ts.getValue());
This page took 0.026247 seconds and 5 git commands to generate.