Class: Time

Inherits:
Object show all
Defined in:
lib/shorthand.rb

Instance Method Summary collapse

Instance Method Details

#nmsecObject



436
# File 'lib/shorthand.rb', line 436

def nmsec() Time.mktime(self.month == 12 ? self.year + 1 : self.year, ((self.month % 12) + 1), 1) - self     end

#partsObject



437
# File 'lib/shorthand.rb', line 437

def parts() [self.year, self.month, self.day, self.hour, self.min, self.sec, self.nmsec.round, self.wday, self.yday] end