diff options
| author | vin <git@vineetk.net> | 2024-01-17 16:51:00 -0500 |
|---|---|---|
| committer | vin <git@vineetk.net> | 2024-01-17 16:51:00 -0500 |
| commit | 8616d615551f0c5c2a32253541bdc802bf110a13 (patch) | |
| tree | 64aece4edb734c4d7c88db8c34b5a44052d56f87 /aplus.go | |
| parent | 9221051daefc9f8ee5ecf31a3f6974ee3965869c (diff) | |
Diffstat (limited to 'aplus.go')
| -rw-r--r-- | aplus.go | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -8,8 +8,8 @@ import ( | |||
| 8 | "net/http" | 8 | "net/http" |
| 9 | "net/url" | 9 | "net/url" |
| 10 | "regexp" | 10 | "regexp" |
| 11 | "strings" | ||
| 12 | "strconv" | 11 | "strconv" |
| 12 | "strings" | ||
| 13 | "time" | 13 | "time" |
| 14 | ) | 14 | ) |
| 15 | 15 | ||
| @@ -238,7 +238,7 @@ func timetable(course_code int) { | |||
| 238 | hour, _ := strconv.Atoi(jsdate[3]) | 238 | hour, _ := strconv.Atoi(jsdate[3]) |
| 239 | min, _ := strconv.Atoi(jsdate[4]) | 239 | min, _ := strconv.Atoi(jsdate[4]) |
| 240 | sec, _ := strconv.Atoi(jsdate[5]) | 240 | sec, _ := strconv.Atoi(jsdate[5]) |
| 241 | date := time.Date(year, time.Month(month + 1), day, hour, min, sec, 0, time.UTC).Local() | 241 | date := time.Date(year, time.Month(month+1), day, hour, min, sec, 0, time.UTC).Local() |
| 242 | 242 | ||
| 243 | fmt.Println(date.Format("Mon Jan 02 15:04:05 MST 2006") + ": " + strings.Replace(statuses[i], "title=\"\">", "", 1)) | 243 | fmt.Println(date.Format("Mon Jan 02 15:04:05 MST 2006") + ": " + strings.Replace(statuses[i], "title=\"\">", "", 1)) |
| 244 | } | 244 | } |
