2010/4/4 Aaron Patterson <redmine / ruby-lang.org>:
>
> hmmm.  Is this necessary?  You can dump your time object as a rational if you need that kind of accuracy:

Don't do it.  The interpretation of "seconds from Unix epoch" depends on
timezone because timezone contains leapsecond information.

% TZ=America/New_York ./ruby -rpsych -e '
t = Time.local(2010,1,1)
STDERR.puts t
Psych.dump(t.to_r, STDOUT)' > z
2010-01-01 00:00:00 -0500
% TZ=right/America/New_York ./ruby -rpsych -e 'p Time.at(Psych.load(STDIN))' < z
2009-12-31 23:59:36 -0500

The result of Time#to_r is intepreted differently with timezone.

Even if same timezone is used, leapseconds information will be updated
when new leapseconds is determined.
-- 
Tanaka Akira