getDay() public method

public getDay ( ) : int
return int
Example #1
0
 //////////////////////////////////////////////////////////////////////////
 // Constructors
 //////////////////////////////////////////////////////////////////////////
 internal DateTimeStr(string pattern, Locale locale, DateTime dt)
 {
     this.pattern  = pattern;
       this.m_locale = locale;
       this.year     = dt.getYear();
       this.mon      = dt.month();
       this.day      = dt.getDay();
       this.hour     = dt.getHour();
       this.min      = dt.getMin();
       this.sec      = dt.getSec();
       this.ns       = dt.getNanoSec();
       this.weekday  = dt.weekday();
       this.tz       = dt.tz();
       this.dst      = dt.dst();
 }
Example #2
0
        //////////////////////////////////////////////////////////////////////////
        // Constructors
        //////////////////////////////////////////////////////////////////////////

        internal DateTimeStr(string pattern, Locale locale, DateTime dt)
        {
            this.pattern  = pattern;
            this.m_locale = locale;
            this.val      = dt;
            this.year     = dt.getYear();
            this.mon      = dt.month();
            this.day      = dt.getDay();
            this.hour     = dt.getHour();
            this.min      = dt.getMin();
            this.sec      = dt.getSec();
            this.ns       = dt.getNanoSec();
            this.weekday  = dt.weekday();
            this.tz       = dt.tz();
            this.dst      = dt.dst();
        }