Historical updating oE now, Revision 3

now

include std/datetime.e -- (default namespace is datetime) 
public function now() 

creates a new datetime value initialized with the current date and time.

Returns:

A sequence, more precisely a datetime corresponding to the current moment in time.

Example 1:
include std/datetime.e 
 
object dt = now() -- dt is the current date and time 
? dt -- display it 
Result:

{2019,9,7,17,20,2}

See Also:

from_date, from_unix, new, new_time, now_gmt

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu