Clojure - Get hour only from Time String

Viewed 707

I have a time string "2017-08-30 09:01:48". Is there a way to round the time to the nearest hour and return the hour?

So if the time were "2017-08-30 09:01:48" it would return 9

If the time were "2017-08-30 09:51:48" it would return 10

I looked at the library clj-time but I couldn't see anything in there that would help me

Any help would be much appreciated?

3 Answers
Related