Computers are everywhere nowadays - in cars, trains, skateboards, even nuclear reactors. The possibility that your software will run in a time travelling device is just a matter of time. Can you deal with it? Can you at least detect it?
- Write a program that loops and keeps querying the system time, in order to detect time travel.
- If time moves forward a day or more between two consecutive queries, it's forward time travel. In this case, your program should print:
TS TS: YYYY? You mean we're in the future?
- If time moves back, by any amount, between two consecutive queries, it's backward time travel. In this case, your program should print:
TS TS: Back in good old YYYY.
TS TSare the timestamps before and after the time travel.
YYYYis the destination year.
- Timestamps may be in any format, that includes at least the 4-digit year, month, day, hour, minute and second, separated by non-digits.
- You must support dates in the 19th, 20th and 21st centuries, at least.
- You must use a language that existed before this challenge was posted.
- You must post your answers only after this challenge was posted.
- You must use a language that existed before your answer was posted.
- You may edit your answer only after you've posted it.
- Your program must not print any output other than the required output. An occasional "Great Scott!" is allowed.
This is code-golf. The shortest answer wins.
Relevant movie references will probably make your answer too long, but might get you upvotes.