I googled for the programming language plus "current time", and obtained the following methods. The programming languages are the most popular languages on github.
now = Time.new
Date now = Calendar.getInstance().getTime();
now = datetime.datetime.now()
DateTime now = DateTime.Now;
now = time()
now = [NSDate date]
var now = new Date();
time_t now = time(NULL);
These are the standard methods in the standard APIs. Nonetheless, they introduce “Hidden global state” into your application (see Slide 16 on “Clean Code Talks - Global State and Singletons” in the Google testing blog). Hidden global state makes your code hard to test, yet it is ubiquitous. Somebody should do something about that! (Yes, I’m working on it :)