Skip to content

Commit

Permalink
Print current weekday
Browse files Browse the repository at this point in the history
  • Loading branch information
lschuermann committed Sep 12, 2023
1 parent da93bbf commit d03bbab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ func main() {
fmt.Println("Hello COS316!")

assignment_due := utils.AssignmentDueToday(time.Now())
fmt.Println("Is there an assignment due today?", assignment_due)
fmt.Printf(
"Today is a %s. Is there an assignment due today? %t\n",
time.Now().Weekday(),
assignment_due,
)
}

0 comments on commit d03bbab

Please sign in to comment.