kday_on_or_before() public static method

The static method computes the date of a day of week on or before a particular date.
public static kday_on_or_before ( int date, int k ) : int
date int An integer representing the date as /// fixed day number. ///
k int An integer representing the day of the week, /// starting with 0 for sunday. ///
return int
Example #1
0
 public static int kday_after(int date, int k)
 {
     return(CCFixed.kday_on_or_before(date + 7, k));
 }
Example #2
0
 public static int kday_before(int date, int k)
 {
     return(CCFixed.kday_on_or_before(date - 1, k));
 }
Example #3
0
 public static int kd_nearest(int date, int k)
 {
     return(CCFixed.kday_on_or_before(date + 3, k));
 }