You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Valentina Sirkova (JIRA)" <ji...@apache.org> on 2008/03/30 22:54:24 UTC

[jira] Commented: (OFBIZ-715) Utils for doing date calculations based on timeUomIds

    [ https://issues.apache.org/jira/browse/OFBIZ-715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583483#action_12583483 ] 

Valentina Sirkova commented on OFBIZ-715:
-----------------------------------------

Hi,

 I got interested in this issue and would like to contribute on it but i need your guidance about one thing. I read a lot of stuff on the net about leap years etc and got the impression it is complicated yet intriguing matter. Here is the question: 
 How do you define year: By standard it is 365 or 366(leap) days depending on the occurrence of Feb 29. I read in your comments that the period between Feb 28 and Feb 29(leap year) is 1 year(366 days).
 What is the period 28 Feb and 28 Feb(leap year) then? This is 365 days is it one year again? If yes then if we want to find the difference between 2003-02-28 and 2004-02-29; 2003-02-28 and 2004-02-28 this would yeld 1 year in both situations?

regards: Valentina

> Utils for doing date calculations based on timeUomIds
> -----------------------------------------------------
>
>                 Key: OFBIZ-715
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-715
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Andrew Sykes
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: elapsed_time.patch, UtilDateTime.java.patch, UtilDateTime.java.patch
>
>
> 6 new methods, 
> 1/ adjustDateTime (3 methods) adjusts either a Timestamp Date or Calendar by the given timeUomId and timeUomMultiple
> 2/ getTimeUomMultipleDifference (3 methods) gets the timeUomMultiple for two Timestamp Date or Calendar objects given the timeUomId.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.