Perl, Command Line, 24 bytes
sleep(say)while$_=gmtime
This must be run from the command line, as perl -E'sleep(say)while$_=gmtime'
(on windows, use double quotes instead). The date will be output along with the time, which seems to be allowedseems to be allowed.
Perl, 25 bytes
sleep print$/.gmtime;do$0
In a scalar context, gmtime
will return a string similar to Sat Nov 28 10:23:05 2015
. The result from print
, always 1, is used as the parameter for sleep
. do$0
is used to execute the script again, after the timer has finished.