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:
parent
f46e4edce0
commit
0305f2bafd
|
@ -401,6 +401,8 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry {
|
||||||
NumberFormat numberFormat = NumberFormat.getNumberInstance();
|
NumberFormat numberFormat = NumberFormat.getNumberInstance();
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat(
|
SimpleDateFormat dateFormat = new SimpleDateFormat(
|
||||||
textBundle.get("DateFormat")); //$NON-NLS-1$
|
textBundle.get("DateFormat")); //$NON-NLS-1$
|
||||||
|
SimpleDateFormat dateTimeFormat = new SimpleDateFormat(
|
||||||
|
textBundle.get("DateTimeFormat"));
|
||||||
|
|
||||||
List<String> list = new ArrayList<>();
|
List<String> list = new ArrayList<>();
|
||||||
switch (displayMode) {
|
switch (displayMode) {
|
||||||
|
@ -445,9 +447,9 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry {
|
||||||
list.add(numberFormat.format(getBlocksUsed()));
|
list.add(numberFormat.format(getBlocksUsed()));
|
||||||
list.add(getLastModificationDate() == null ?
|
list.add(getLastModificationDate() == null ?
|
||||||
textBundle.get("ProdosFileEntry.NullDate") : //$NON-NLS-1$
|
textBundle.get("ProdosFileEntry.NullDate") : //$NON-NLS-1$
|
||||||
dateFormat.format(getLastModificationDate()));
|
dateTimeFormat.format(getLastModificationDate()));
|
||||||
list.add(getCreationDate() == null ? textBundle.get("ProdosFileEntry.NullDate") : //$NON-NLS-1$
|
list.add(getCreationDate() == null ? textBundle.get("ProdosFileEntry.NullDate") : //$NON-NLS-1$
|
||||||
dateFormat.format(getCreationDate()));
|
dateTimeFormat.format(getCreationDate()));
|
||||||
numberFormat.setMinimumIntegerDigits(1);
|
numberFormat.setMinimumIntegerDigits(1);
|
||||||
list.add(numberFormat.format(getEofPosition()));
|
list.add(numberFormat.format(getEofPosition()));
|
||||||
if ("TXT".equals(getFiletype()) && getAuxiliaryType() > 0) { //$NON-NLS-1$
|
if ("TXT".equals(getFiletype()) && getAuxiliaryType() > 0) { //$NON-NLS-1$
|
||||||
|
|
|
@ -9,6 +9,7 @@ UsedBlocks=Used Blocks
|
||||||
DeletedQ=Deleted?
|
DeletedQ=Deleted?
|
||||||
Blocks=Blocks
|
Blocks=Blocks
|
||||||
DateFormat=MM/dd/yyyy
|
DateFormat=MM/dd/yyyy
|
||||||
|
DateTimeFormat=MM/dd/yyyy HH:mm
|
||||||
Deleted=Deleted
|
Deleted=Deleted
|
||||||
Locked=Locked
|
Locked=Locked
|
||||||
Destroy=Destroy
|
Destroy=Destroy
|
||||||
|
|
Loading…
Reference in New Issue