When did I sleep last night?

Feeling in between groggy and fresh, I was curious to know exactly what time I went to sleep last night. Running (in a terminal) `pmset -g log|grep -e “ Sleep “ -e “ Wake “` gives you a log of all your mac osx sleep events. Found the event I was looking for by honing in on the events from last night (22:00 to 24:00), specifically the`clamshell close` preceding the `maintenance sleep` state. Obviously a lot of ways to find this out — this is just one way to do it.

Note: Unfortunately Medium butchers quotes. When copying the above command, you’ll have to replace the smart quotes with whatever is acceptable in your terminal.