Class: Time
Instance Method Summary collapse
Instance Method Details
#nmsec ⇒ Object
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 |
#parts ⇒ Object
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 |