So I have been allotted months of futility, and nights of misery have been assigned to me. (NIV)
So am I allotted months of futile [suffering], and [long] nights of misery are appointed to me. (AMP)
So am I made to possess months of vanity, and wearisome nights are appointed to me. (KJV)