Fan.Sys.DateTime.getYear C# (CSharp) Method

getYear() public method

public getYear ( ) : int
return int
        public int getYear()
        {
            return (m_fields & 0xff) + 1900;
        }

Usage Example

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();
 }
All Usage Examples Of Fan.Sys.DateTime::getYear