View Problem

Display the current date and time

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.
DiskEdit
python
from datetime import datetime
print datetime.utcnow()
DiskEdit
clojure
(import 'java.util.Date)

(println (str (Date.)))
DiskEdit
fsharp
printfn "%A" System.DateTime.Now
ExpandDiskEdit
fantom
echo(DateTime.now)
DiskEdit
java
import java.util.Date;

public class SolutionXX {
public static void main(String[] args) {
Date now = new Date();
System.out.println(now.toString());
}
}
ExpandDiskEdit
cpp Qt 4.x
QDate now = QDate::currentData();
qDebug() << now.toString();
ExpandDiskEdit
cpp
time_t date = time(0);
cout << ctime(&date);
DiskEdit
groovy
println new Date()

Submit a new solution for python, clojure, fsharp, fantom ...
There are 11 other solutions in additional languages (csharp, erlang, go, haskell ...)