Adding long date to the long format listings for ProDOS. This is similar

to CAT versus CATALOG, and should really have been that format in the
first place. #42
This commit is contained in:
Rob Greene 2020-11-17 23:16:20 -06:00
parent f46e4edce0
commit 0305f2bafd
2 changed files with 5 additions and 2 deletions

View File

@ -401,6 +401,8 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry {
NumberFormat numberFormat = NumberFormat.getNumberInstance();
SimpleDateFormat dateFormat = new SimpleDateFormat(
textBundle.get("DateFormat")); //$NON-NLS-1$
SimpleDateFormat dateTimeFormat = new SimpleDateFormat(
textBundle.get("DateTimeFormat"));
List<String> list = new ArrayList<>();
switch (displayMode) {
@ -445,9 +447,9 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry {
list.add(numberFormat.format(getBlocksUsed()));
list.add(getLastModificationDate() == null ?
textBundle.get("ProdosFileEntry.NullDate") : //$NON-NLS-1$
dateFormat.format(getLastModificationDate()));
dateTimeFormat.format(getLastModificationDate()));
list.add(getCreationDate() == null ? textBundle.get("ProdosFileEntry.NullDate") : //$NON-NLS-1$
dateFormat.format(getCreationDate()));
dateTimeFormat.format(getCreationDate()));
numberFormat.setMinimumIntegerDigits(1);
list.add(numberFormat.format(getEofPosition()));
if ("TXT".equals(getFiletype()) && getAuxiliaryType() > 0) { //$NON-NLS-1$

View File

@ -9,6 +9,7 @@ UsedBlocks=Used Blocks
DeletedQ=Deleted?
Blocks=Blocks
DateFormat=MM/dd/yyyy
DateTimeFormat=MM/dd/yyyy HH:mm
Deleted=Deleted
Locked=Locked
Destroy=Destroy