public String toFormattedString(int flags) { if (getTimeLabel() != null) { return getTimeLabel().isoString; } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? return label; }
private SUTime.Temporal addEndPoints(SUTime.Duration d) { SUTime.Temporal t = d; if (d != null && (beginTime != null || endTime != null)) { SUTime.Time b = beginTime; SUTime.Time e = endTime; // New so we get different time ids if (b == SUTime.TIME_REF_UNKNOWN) { b = new SUTime.RefTime("UNKNOWN"); } else if (b == SUTime.TIME_UNKNOWN) { b = new SUTime.SimpleTime("UNKNOWN"); } if (e == SUTime.TIME_REF_UNKNOWN) { e = new SUTime.RefTime("UNKNOWN"); } else if (e == SUTime.TIME_UNKNOWN) { e = new SUTime.SimpleTime("UNKNOWN"); } t = new SUTime.Range(b,e,d); } return t; }
public String toFormattedString(int flags) { if (getTimeLabel() != null) { return getTimeLabel(); } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? return label; }
@Override public String toFormattedString(int flags) { if (getTimeLabel() != null) { return getTimeLabel(); } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? return label; }
@Override public String toFormattedString(int flags) { if (getTimeLabel() != null) { return getTimeLabel(); } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? return label; }