add to_time section for AnySerializer; formatting of java