From: Pablo Lorenzzoni Date: 2003-12-04T13:06:54+09:00 Subject: Swatch's internet time in Ruby [Code Inside] Hello ALL! Just wanted to share... maybe someone have a better way to do this: ---------- class Time def bmt_hour h = self.gmtime.hour + 1 return 0 if h == 24 return h end def beats ((self.bmt_hour * 60 * 60) + (self.min * 60) + self.sec) / 86.4 end protected :bmt_hour end ---------- require('beats.rb') and Time.now.beats returns the Internet Time in beats []s Pablo -- Pablo Lorenzzoni (Spectra) GnuPG: 0x268A084D at pgp.mit.edu/keyring.debian.org This message is protected by DoubleROT13 encryption Attempting to decode it violates the DMCA/WIPO acts