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

getNanoSec() public method

public getNanoSec ( ) : int
return int
        public int getNanoSec()
        {
            long rem = m_ticks >= 0 ? m_ticks : m_ticks - yearTicks[0];
              return (int)(rem % 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::getNanoSec