Date a = getInstance().getTime();
String d = "%tc".formatted(a);
		 
	
		
			
			long a = currentTimeMillis();
String d = "%tc".formatted(a);
		 
	
		
			
			Instant d = Instant.now();
		 
	
		
			
			D : Ada.Calendar.Time := Ada.Calendar.Clock;
		 
	
		
	
		
			
			(def d #(java.util.Date.))
		 
	
		
			
			IDENTIFICATION DIVISION.
PROGRAM-ID. date.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 curr-date.
   03 year      pic 9(4).
   03 month     pic 9(2).
   03 day       pic 9(2).
PROCEDURE DIVISION.
   MOVE FUNCTION CURRENT-DATE TO curr-date
STOP RUN.
		 
	
		
			
			std::time_t d = std::time(nullptr);
		 
	
		
			
			DateTime d = DateTime.Now;
		 
	
		
	
		
	
		
	
		
			
			D = calendar:local_time().
		 
	
		
			
			integer, dimension(8) :: d
call date_and_time (values=d)
		 
	
		
	
		
			
			d <- System.Posix.Time.epochTime
		 
	
		
	
		
	
		
			
			(defparameter d
  (multiple-value-bind (seconds minutes hours day month year day-of-the-week daylight-savings-time-p time-zone)
(get-decoded-time)
(declare (ignorable day-of-the-week daylight-savings-time-p time-zone))
(format nil "~D-~2,'0D-~2,'0D ~2,'0D:~2,'0D:~2,'0D~%" year month day hours minutes seconds))
"The current date and time as a string value.")
		 
	
		
	
		
	
		
	
		
			
			var
  _d: TDateTime;
begin
  _d := Now;
end.
		 
	
		
	
		
			
			use Time::Piece;
$d = localtime;		# local time as a Time::Piece object
say $d->ymd;		# yyyy-mm-dd format
say $d->datetime;	# ISO 8601 format
$g = gmtime;		# GMT as a Time::Piece object
		 
	
		
			
			$d = time;
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($d);
		 
	
		
			
			d = datetime.datetime.now()
		 
	
		
	
		
	
		
			
			let d = SystemTime::now();
		 
	
		
			
			Dim d As DateTime = DateTime.Now()