Programming Tips - How can I list the pending AlarmManager alarms?

Date: 2016aug23 OS: Android Q. How can I list the pending AlarmManager alarms? A.
adb shell dumpsys alarm
On Windows, if adb isn't in your path do this first:
cd c:\android_sdk\platform-tools
Where c:\android_sdk is the location of your SDK