Because Time is unknown, but you know the other two, the correct equation would be "Time = Work ÷ Power", then 1,000,000J ÷ 100W = 10000 seconds. Then convert it into proper time and you'll get 2 hours, 46 minutes and 40 seconds.