The Disk Utility hanging during the partitioning process can certainly be frustrating. From your description, it appears the process has been running for an unusually long time. While it's possible for partitioning large drives like yours to take a few hours, it usually doesn't last for 12 hours.
Before we go forward, I'd suggest to safely cancel the current partitioning process, if it's still running. Be careful not to unplug or forcefully interrupt the process as it might cause data corruption. Instead, you can cancel it by clicking the stop button if it appears, or safely force-quit the Disk Utility from the Apple menu > Force Quit, and choose Disk Utility.
Once that's done, try to reboot your iMac. A fresh start can often solve many problems. Afterwards, open Disk Utility and run 'First Aid' on the drive to ensure its integrity before we try partitioning it again.
If the drive checks out okay with First Aid, let's try partitioning it once more. When you do, make sure your iMac is connected to a power source and not set to go to sleep in the middle of the process. This is a resource-intensive task, and any interruptions can cause the process to hang or fail.
Here are some helpful links with more information:
1. How to safely force-quit an application - Apple Support
2. Disk Utility for Mac: Disk Utility First Aid - Apple Support
3. About Disk Utility on Mac - Apple Support
Remember to always keep a backup of important data before you start partitioning or performing other significant tasks with Disk Utility.