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

getSec() public method

public getSec ( ) : int
return int
        public int getSec()
        {
            long rem = m_ticks >= 0 ? m_ticks : m_ticks - yearTicks[0];
              return (int)((rem % nsPerMin) / nsPerSec);
        }

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::getSec