localeStartOfWeek() public static method

public static localeStartOfWeek ( ) : Weekday
return Weekday
Ejemplo n.º 1
0
        private int weekOfYear()
        {
            Weekday sow = Weekday.localeStartOfWeek(locale());

            if (val is DateTime)
            {
                return((int)((DateTime)val).weekOfYear(sow));
            }
            if (val is Date)
            {
                return((int)((Date)val).weekOfYear(sow));
            }
            return(0);
        }
Ejemplo n.º 2
0
 public long weekOfYear()
 {
     return(weekOfYear(Weekday.localeStartOfWeek()));
 }