Skip to main content
1 of 4
Cody
  • 447
  • 2
  • 3

#Happy New Year, 2017

Your task is to write a complete program, that if started today (December 16th, 2016), will produce no output until it is New Year's Day in 2017 (January 1st, 2017, 12:00am). At this exact moment (in your computer's local time), it will print "Happy New Year!". After this, it can either keep running forever (producing no output ever again), or exit. The display can be done in the command line, a GUI, spoken through the speakers, sending an email or a text to you, or any other reasonable way of informing the user that they are now in 2017.

Criteria for voting: good answers should be as short as possible, and answers that go above and beyond printing a message to stdout should be given extra consideration.

(Note for sandbox reviewers: the "today December 16th" part will be updated for whatever day it is when I post the challenge for real.)

Cody
  • 447
  • 2
  • 3