Create a Date object representing the current date and time. Print it out.
If you can also do this without creating a Date object you can show that too.
python from datetime import datetime
print datetime.utcnow()
from datetime import datetime
print datetime.utcnow()
clojure (import 'java.util.Date)
(println (str (Date.)))
(import 'java.util.Date)
(println (str (Date.)))
Submit a new solution for
python or
clojure
There are 17 other solutions in
additional languages (
cpp,
csharp,
erlang,
fantom ...)