New implementation

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
#include <time.h>
time_t d=time(0);
DateTime d = DateTime.Now;
import std.datetime;
auto d = Clock.currTime;
var d = new DateTime.now();
d = :calendar.local_time
D = calendar:local_time().
import "time"
var d time.Time = time.Now()
d <- System.Posix.Time.epochTime
var d = Date.now();
var d = new Date();
import java.time.Instant;
Instant d = Instant.now();
date = os.date()
time = os.time()
$d = time();
var
  _d: TDateTime;
begin
  _d := Now;
end.
$d = time;
import datetime
d = datetime.datetime.now()
d = Time.now
extern crate time;
let d = time::now();