Logo

Programming-Idioms

  • VB
  • Obj-c

Idiom #61 Get current date

Assign to the variable d the current date/time value, in the most standard type.

@import Foundation;
NSDate *d=NSDate.date;
Dim d As DateTime = DateTime.Now()
with Ada.Calendar;
D : Ada.Calendar.Time := Ada.Calendar.Clock;

New implementation...
< >
programming-idioms.org