@Override public String toFormattedString(int flags) { if (getTimeLabel() != null) { return getTimeLabel(); } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? if ((flags & FORMAT_TIMEX3_VALUE) != 0) { return null; } // TODO: is there timex3 standard? StringBuilder sb = new StringBuilder(); if (base != null && base != TIME_REF) { sb.append(base.toFormattedString(flags)); } if (tempOp != null) { if (sb.length() > 0) { sb.append(" "); } sb.append(tempOp); if (tempArg != null) { sb.append(" ").append(tempArg.toFormattedString(flags)); } } return sb.toString(); }
@Override public String toFormattedString(int flags) { if (getTimeLabel() != null) { return getTimeLabel(); } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? if ((flags & FORMAT_TIMEX3_VALUE) != 0) { return null; } // TODO: is there timex3 standard? StringBuilder sb = new StringBuilder(); if (base != null && base != TIME_REF) { sb.append(base.toFormattedString(flags)); } if (tempOp != null) { if (sb.length() > 0) { sb.append(" "); } sb.append(tempOp); if (tempArg != null) { sb.append(" ").append(tempArg.toFormattedString(flags)); } } return sb.toString(); }
public String toFormattedString(int flags) { if (getTimeLabel() != null) { return getTimeLabel(); } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? if ((flags & FORMAT_TIMEX3_VALUE) != 0) { return null; } // TODO: is there timex3 standard? StringBuilder sb = new StringBuilder(); if (base != null && base != TIME_REF) { sb.append(base.toFormattedString(flags)); } if (tempOp != null) { if (sb.length() > 0) { sb.append(" "); } sb.append(tempOp); if (tempArg != null) { sb.append(" ").append(tempArg.toFormattedString(flags)); } } return sb.toString(); }
public String toFormattedString(int flags) { if (getTimeLabel() != null) { if (getTimeLabel().isoString != null) { return getTimeLabel().isoString; } } if ((flags & FORMAT_ISO) != 0) { return null; } // TODO: is there iso standard? if ((flags & FORMAT_TIMEX3_VALUE) != 0) { return null; } // TODO: is there timex3 standard? StringBuilder sb = new StringBuilder(); if (base != null && base != TIME_REF) { sb.append(base.toFormattedString(flags)); } if (tempOp != null) { if (sb.length() > 0) { sb.append(" "); } sb.append(tempOp).append(" "); sb.append(tempArg.toFormattedString(flags)); } return sb.toString(); }