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()
fsharp printfn "%A" System.DateTime.Now
printfn "%A" System.DateTime.Now
fantom echo(DateTime.now)
class SolutionXX
{
Void main()
{
echo(DateTime.now)
}
}
Submit a new solution for
python,
fsharp, or
fantom
There are 16 other solutions in
additional languages (
clojure,
cpp,
csharp,
erlang ...)