Skip to content
Prev Previous commit
Next Next commit
added time to entry and out in projects
  • Loading branch information
daros10 committed Mar 19, 2020
commit 5a6e41ee779edbb6dc7ca23e641edf766d04e5bb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class TimeClockComponent implements OnInit {
setShowFields(show: boolean) {
this.isClockIn = false;
this.showFields = show;
this.setTimeToInOut();
}

startTimer() {
Expand All @@ -95,7 +96,7 @@ export class TimeClockComponent implements OnInit {
}
}

setTimeToInOut(){
setTimeToInOut() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this function doing?
its name is weird :(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function to establish arrival and departure times for employees

this.currentDate = new Date();
this.hour = this.currentDate.getHours();
this.minute = this.currentDate.getMinutes();
Expand Down