How to get seconds of day (1 - 86400) in Go?
Just like http://joda-time.sourceforge.net/apidocs/org/joda/time/base/AbstractDateTime.html#getSecondOfDay()
Update/Clarifications
- Wanted equivalent of the joda/SecondOfDay in golang
- Expected to start at 0 and 86400 at end of the day
- Required when rewriting in golang a java opensource function which in turn is using joda/secondOfDay
- Googled '24 hour to seconds' to get 86400
- While asking question I could only think of now.Unix()-yesterdayMidnight.Unix() and the simple accepted answer didn't come to my mind
- Obviously didn't think about Daylight Saving
- Wanted to see if there is some built in function or popular/standard library