updating oE weeks_day

weeks_day

include datetime.e -- (default namespace is datetime) 
public function weeks_day(datetime dt) 

Gets the day of week of the datetime dt.

Parameters:
  1. dt : a datetime to be queried.
Returns:

An integer, between 1 (Sunday) and 7 (Saturday).

Example 1:
include std/datetime.e 
 
datetime d = new(2008, 5, 2, 0, 0, 0) 
integer day = weeks_day(d) -- day is 6 because May 2, 2008 is a Friday. 
? day 
Results:

6

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu