i never beat the new shadow warrior but i used to play the original a lot. probably not as much as i played doom but it was definitely more than duke nukem. i would estimate about 20 hours probably.
im feeling cheeki breeki
basically the program waits 1000*60*60*24 milliseconds or 1 day before outputting the current date which would be tomorrow's date by the time you execute the program