The notion of "going to the gym" for an hour or two per day is an entirely modern idea concocted to make up for an entire day of sitting behind a desk. The bottom line is that the human body was not designed to sit sedentarily all day, nor was it meant to compensate for this by fiddling with metallic weights and machinery at an indoor facility for a few hours immediately after a long state of stagnation.
Over the course of thousands of years, humans have evolved to create the perfect physique for hunting, gathering, farming, etc. all day long. This is why you often see individuals with labor intensive jobs who are still ripped to shreds without ever "lifting weights." They are doing what their body was made to do.
So, what if you work at an office? No need to worry. Since exercise equipment is limited, the best way to emulate what the human body was created for is to do calisthenics and other natural bodyweight movements such as parkour throughout the day in short spurts. You can always perform push ups, pull ups, squats etc. every top of the hour or every time you take a restroom break. Best of all, you save a ton of time by not needing to head to the gym.
Something like this always works well!