Created
June 17, 2018 03:04
-
-
Save gavinzhou/43cc8bb09bfff2ac27bf71f7a3a9062d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CheckEndOfMonth check end of month | |
func CheckEndOfMonth() bool { | |
return time.Now().Add(+24*time.Hour).Day() == 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment