Hello mates, I am trying to set greetings according the to the current time, but I am facing the problem of 3 PM and 3 AM. How can I declare it since the hour is a integer?
Code:
hour, _, _ := time.Now().Clock()
if hour >= 18 && hour < 3 {
greetings(Dawn)
}