forked from nusCS2113-AY1920S1/duke
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nusCS2113-AY1920S1#19 from CEGLincoln/master
B-DoWithinPeriodTasks
- Loading branch information
Showing
6 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
T|0|read book | ||
D|0|return book |tmr | ||
E|0|meeting |2019-09-09 | ||
[P][✘] pain (from: TODO to: TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package duke.task; | ||
|
||
import java.util.Date; | ||
|
||
public class DoWithinPeriodTasks extends Task{ | ||
|
||
private Date from; | ||
private Date to; | ||
|
||
public DoWithinPeriodTasks(String d, String f, String t) { | ||
//CONSTRUCTOR | ||
super(d); | ||
from = super.getDate(f); | ||
to = super.getDate(t); | ||
} | ||
|
||
public String printInFile(){ | ||
return this.toString(); | ||
} | ||
|
||
@Override | ||
public String toString(){ | ||
return "[P]" + super.toString() + "(from: " + "TODO" + " to: " + "TODO"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters