Display the date and time

Created by Julien Palard

Write a program printing the current date (year month day hour minute and seconds) in a human readable format.

It should look like this:

Today is 2015-09-17 and it is 09:34:35.

Beware the width is constant: 9h should displayed as 09:00:00, not 9:00:00, same for the month, day, and so on.

Reference

There's no corrections yet, hit the `Submit` button to send your code to the correction bot.

Keyboard shortcuts:

  • Ctrl-Enter: Send your code to the correction bot.
  • Escape: Get back to the instructions tab.

See solutions