Hi,

As per our previous discussion regarding calendar spans,i wrote following
test cases correct me if i wrong -

1:  If i create a time using

         time_span_obj.years=1;



time_span_obj.months=12;




time_span_obj.days=31;




time_span_obj.hours=23;




time_span_obj.minutes=59;




time_span_obj.seconds=59;



         time_obj=pdf_time_new();

  And add it using pdf_time_add_cal_span() then

  Resulting  time would be 1972-02-02 01:01:00 UTC

  Am i correct?

2: If the date is like this 1970:12:31 23:59:59  and if I add span of 1
year,12 months,31 days 23 hours,59 min ,59 seconds
   Resulting date should be 1973-02-02 01:01:59
   Am i right?

3: What if i pass PDF_U32_MAX or PDF_U32_MIN to
time_span_obj.years=PDF_U32_MAX  and add some time span to it , is it a
valid test case?

Thanks and Regards
-- 
Anish Patil

Reply via email to