[
https://issues.apache.org/jira/browse/NET-562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236973#comment-14236973
]
Sebb commented on NET-562:
--------------------------
Could perhaps use Calendar#isSet(Calendar.SECOND) etc.
The parser could use Calendar#clear(Calendar.SECOND) to indicate which fields
have not been set.
This needs careful handling as the setting is manipulated internally by
Calendar.
The advantage is that no extra data would need to be stored in FTPFile
> FTPFile.toFormattedString should print signficant parts of the parsed date
> --------------------------------------------------------------------------
>
> Key: NET-562
> URL: https://issues.apache.org/jira/browse/NET-562
> Project: Commons Net
> Issue Type: Improvement
> Reporter: Sebb
>
> It would be useful if FTPFile.toFormattedString printed the signficant parts
> of the parsed date.
> i.e. if the returned date includes seconds and milliseconds, these should be
> included, otherwise they should not be shown. Etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)