Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/palm/palm_support.rb

Overview

Class extensions for making palm data easier to work with

Constant Summary collapse

EPOC_1904 =

Difference between Palm’s epoch

2082844800

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.at_palm_seconds(seconds) ⇒ Object



9
10
11
# File 'lib/palm/palm_support.rb', line 9

def self.at_palm_seconds(seconds)
	at(seconds - EPOC_1904)
end

Instance Method Details

#to_palm_secondsObject



5
6
7
# File 'lib/palm/palm_support.rb', line 5

def to_palm_seconds
	to_i + EPOC_1904
end