Skip to content

Commit 94c32f9

Browse files
authored
Add sseconds/eseconds fields for easier post-processing (#34)
1 parent c2afd29 commit 94c32f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/event.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ def initialize(obj)
9999
zone = '+00:00'
100100
end
101101

102+
# Save as seconds, Time, RDT
102103
ctime = obj[k] + ITIME
103-
104+
@self["#{k[0]}seconds"] = ctime
104105
@self["#{k[0]}ctime"] = Time.at(ctime)
105106
@self["#{k[0]}date"] = RDT.from_time(Time.at(ctime, in: zone))
106107
end

0 commit comments

Comments
 (0)