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.
fantom echo(DateTime.now)
class SolutionXX
{
Void main()
{
echo(DateTime.now)
}
}
erlang io:format("~p~n", [calendar:local_time()])
io:format("~p~n", [calendar:local_time()])
Submit a new solution for
fantom or
erlang
There are 17 other solutions in
additional languages (
clojure,
cpp,
csharp,
fsharp ...)