Opened 15 years ago

Last modified 9 years ago

#213 new defect

IZ1375: PartialTimestamp doesn't pin the day when rolling the year or month

Reported by: templedf Owned by:
Priority: lowest Milestone:
Component: sge Version: 6.0u2
Severity: Keywords: drmaa
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=1375]

        Issue #:      1375             Platform:     All      Reporter: templedf (templedf)
       Component:     gridengine          OS:        All
     Subcomponent:    drmaa            Version:      6.0u2       CC:    None defined
        Status:       REOPENED         Priority:     P5
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    templedf (templedf)
      QA Contact:     templedf
          URL:
       * Summary:     PartialTimestamp doesn't pin the day when rolling the year or month
   Status whiteboard:
      Attachments:

     Issue 1375 blocks:
   Votes for issue 1375:


   Opened: Mon Nov 29 05:17:00 -0700 2004 
------------------------


When the PartialTimestamp.roll() method is called
on the MONTH or YEAR or CENTURY fields, it should
pin the day to the end of the period to prevent
strange side effects.  For example, if the month
is January, and the date is the 31st, rolling the
month foward by 1 without day pinning results in
February 31st, which resolves to March 3rd.
January 31st + 1m = March 3rd doesn't make any
sense.  Instead, January 31st + 1m = February 28th
is what we get when day pinning is done.  Same
goes for leap years when rolling the year.
Currently, the PartialTimestamp class does no day
pinning when rolling.  It does, however, pin the
day when adding (PartialTimstamp.add()).

   ------- Additional comments from templedf Mon Nov 29 05:18:58 -0700 2004 -------
Oops.  My browser is acting funny.  I ended up submitting this one twice.

*** This issue has been marked as a duplicate of 1374 ***

   ------- Additional comments from templedf Fri Feb 18 05:14:53 -0700 2005 -------
Oh, boy.  I guess my browser was really acting funny.  This one is not
a duplicate of 1374.  Reopening.

Change History (0)

Note: See TracTickets for help on using tickets.