Historical updating oE new_time, Revision 2

new_time

include datetime.e -- (default namespace is datetime) 
public function new_time(integer hour, integer minute, atom second) 

Creates a new datetime value with a date of zeros.

Parameters:
  1. hour : is the hour (0-23)
  2. minute : is the minute (0-59)
  3. second : is the second (0-59)
Example 1:
include std/datetime.e 
 
datetime dt = new_time(10, 30, 55) -- i.e. 10:30:55 AM 
? dt 
Results:

{0,0,0,10,40,55}

See Also:

from_date, from_unix, now, new

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu