mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
New improvements
This commit is contained in:
parent
09dbaec4cc
commit
4f71c66e64
0
highlight.txt
Normal file
0
highlight.txt
Normal file
@ -1 +1 @@
|
|||||||
0:09
|
0:00
|
@ -38,12 +38,8 @@ public class Main {
|
|||||||
lastOvertime == null ? "0:00" : lastOvertime
|
lastOvertime == null ? "0:00" : lastOvertime
|
||||||
);
|
);
|
||||||
|
|
||||||
if(!starttimeTxt.exists()) {
|
Utils.writeTextToFile(starttimeTxt, startTime);
|
||||||
Utils.writeTextToFile(starttimeTxt, startTime);
|
Utils.writeTextToFile(overtimeTxt, overTime);
|
||||||
}
|
|
||||||
if(!overtimeTxt.exists()) {
|
|
||||||
Utils.writeTextToFile(overtimeTxt, overTime);
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
TimeCalcWindow timeCalc =
|
TimeCalcWindow timeCalc =
|
||||||
new TimeCalcWindow(startTime, overTime);
|
new TimeCalcWindow(startTime, overTime);
|
||||||
|
@ -182,8 +182,8 @@ public class TimeCalcWindow {
|
|||||||
double totalSecondsRemainsDouble = ((double)totalMillisecondsRemains)/1000;
|
double totalSecondsRemainsDouble = ((double)totalMillisecondsRemains)/1000;
|
||||||
String msg = "Done=" + formatter5.format(done * 100) + "% Remains="
|
String msg = "Done=" + formatter5.format(done * 100) + "% Remains="
|
||||||
+ String.format("%02d", hourRemains) + ":" + String
|
+ String.format("%02d", hourRemains) + ":" + String
|
||||||
.format("%02d", minuteRemains) + ":" + String.format("%02d", secondsRemains) + " (" + formatter3
|
.format("%02d", minuteRemains) + /*":" + String.format("%02d", secondsRemains)+ */ " (" + formatter3
|
||||||
.format(totalSecondsRemainsDouble)
|
.format(totalSecondsRemainsDouble - 60)
|
||||||
+ " s" + ")" + " End=" + String
|
+ " s" + ")" + " End=" + String
|
||||||
.format("%02d", endHour) + ":" + String
|
.format("%02d", endHour) + ":" + String
|
||||||
.format("%02d", endMinute);
|
.format("%02d", endMinute);
|
||||||
@ -304,7 +304,7 @@ public class TimeCalcWindow {
|
|||||||
int spacesTodo = spacesTotal - (spacesDone < 0 ? 0 : spacesDone);
|
int spacesTodo = spacesTotal - (spacesDone < 0 ? 0 : spacesDone);
|
||||||
|
|
||||||
sb.append("||" + createSpaces(58 - 2) + (spacesTodo == 0 ? " \n": "||======||\n"));
|
sb.append("||" + createSpaces(58 - 2) + (spacesTodo == 0 ? " \n": "||======||\n"));
|
||||||
sb.append("||").append(createSpaces(spacesTotal + 4)).append("| |").append("\n");
|
sb.append("||").append(createSpaces(spacesTotal + 4)).append(spacesTodo == 0 ? "" : "| |").append("\n");
|
||||||
|
|
||||||
NumberFormat formatter3 = new DecimalFormat("#0.00000");
|
NumberFormat formatter3 = new DecimalFormat("#0.00000");
|
||||||
sb.append(
|
sb.append(
|
||||||
|
@ -1 +1 @@
|
|||||||
6:39
|
0:48
|
Loading…
x
Reference in New Issue
Block a user