Displaying 3 results from an estimated 3 matches for "dprecision".
Did you mean:
precision
2006 Jul 21
0
Marshal.dump not dumping entire object?
...=> "\004\010u:\020Runt::PDateA\004\010[\010o:\rRational\a:
\017@numeratorl+\a\373C\200\322:\021@denominatori\002\240\005i\000i
\003\031\025#"
>> obj = Marshal.load(data)
=> #<Runt::PDate: 3531621371/1440,0,2299161>
>> start_time.date_precision
=> #<Runt::DPrecision::Precision:0x2753cfc @precision=4>
>> start_time.date_precision.precision
=> 4
>> obj.date_precision
=> nil
as you can see - after round tripping through Marshal, date_precision
isn''t restored (likely not marshalled) to obj.
Is is possible that Runt''s da...
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
...=> "\004\010u:\020Runt::PDateA\004\010[\010o:\rRational\a:
\017@numeratorl+\a\373C\200\322:\021@denominatori\002\240\005i\000i
\003\031\025#"
>> obj = Marshal.load(data)
=> #<Runt::PDate: 3531621371/1440,0,2299161>
>> start_time.date_precision
=> #<Runt::DPrecision::Precision:0x2753cfc @precision=4>
>> start_time.date_precision.precision
=> 4
>> obj.date_precision
=> nil
as you can see - after round tripping through Marshal, date_precision
isn''t restored (likely not marshalled) to obj.
Is is possible that Runt''s da...
2008 Nov 10
3
Runt Recurring events
I am planning on using Runt to calculate recurring events. I
calculate a Runt object in the view and use it to see if it includes a
certain date, which is populates from the database, and display the
info for that date if it is included. I have recurring events for
every week, which was pretty easy to set up. I can just say:
r = Runt::DIWeek.new(4)
For a recurring event every Thursday, and