annotated main
This commit is contained in:
parent
bbbd0d60b6
commit
3071ce4250
5 changed files with 26 additions and 10 deletions
3
main.go
3
main.go
|
|
@ -9,8 +9,11 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
// Get the current datetime
|
||||
now := time.Now()
|
||||
// Set the start date used for opening the current month instead of 1/1/1970
|
||||
start := time.Date(now.Year(), now.Month(), 1, 0, 0, 0, 0, time.UTC)
|
||||
// This gets the weekday of the first of the month so that we have the correct day with the correct date
|
||||
offset := int(start.Weekday())
|
||||
p := tea.NewProgram(model{
|
||||
year: now.Year(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue