builder.clear();
}
appendTimeFormats(builder, flags);
} else if (tod != null) {
if (!hasDate) {
builder.clear();
}
// Assume tod is compatible with whatever was built and
// tod.toISOString() does the correct thing
builder.appendLiteral("T");
builder.appendLiteral(tod.toISOString());