mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-30 16:29:40 +00:00
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();
|
||||
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$
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user