You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "James Clark (JIRA)" <ji...@apache.org> on 2006/09/11 15:12:22 UTC

[jira] Created: (AXIS2C-279) axis2_date_time should support fractional seconds

axis2_date_time should support fractional seconds
-------------------------------------------------

                 Key: AXIS2C-279
                 URL: http://issues.apache.org/jira/browse/AXIS2C-279
             Project: Axis2-C
          Issue Type: Improvement
          Components: util
    Affects Versions: Current (Nightly)
            Reporter: James Clark
            Priority: Minor


The XML schema date time datatype supports fractional seconds.  The security specs suggest support for milliseconds.  I would suggest the interface support microseconds, which will ensure we can support milliseconds with no rounding problems. To do this, 

- add a get_microseconds method

- allow serialization to specify the seconds precision (desired number of digits after the decimal point -- 0, 1, 2, 3).

- make sure parsing handles fractional seconds

- the implementation can use gettimeofday() if available, which is a POSIX standard function

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-279) axis2_date_time should support fractional seconds

Posted by "Malinda Kaushalye Kapuruge (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-279?page=all ]

Malinda Kaushalye Kapuruge resolved AXIS2C-279.
-----------------------------------------------

    Fix Version/s: Current (Nightly)
                       (was: 1.0.0)
       Resolution: Fixed

axis2_date_time uses two implementations for unix and windows to support fractional seconds. This realtes to the patch submitted in JIRA http://issues.apache.org/jira/browse/AXIS2C-451
Thanks Manjula for the patch.

> axis2_date_time should support fractional seconds
> -------------------------------------------------
>
>                 Key: AXIS2C-279
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-279
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>         Assigned To: Malinda Kaushalye Kapuruge
>            Priority: Minor
>             Fix For: Current (Nightly)
>
>
> The XML schema date time datatype supports fractional seconds.  The security specs suggest support for milliseconds.  I would suggest the interface support microseconds, which will ensure we can support milliseconds with no rounding problems. To do this, 
> - add a get_microseconds method
> - allow serialization to specify the seconds precision (desired number of digits after the decimal point -- 0, 1, 2, 3).
> - make sure parsing handles fractional seconds
> - the implementation can use gettimeofday() if available, which is a POSIX standard function

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: [jira] Commented: (AXIS2C-279) axis2_date_time should support fractional seconds

Posted by Franz Fehringer <fe...@isogmbh.de>.
On Windows (at least VC6) there is ftime too, so there is no need to 
distinguish.

Franz


Samisa Abeysinghe (JIRA) schrieb:
>     [ http://issues.apache.org/jira/browse/AXIS2C-279?page=comments#action_12434632 ] 
>             
> Samisa Abeysinghe commented on AXIS2C-279:
> ------------------------------------------
>
> Can we use ftime for this? 
> It is a POSIX standard function and is not in the list of 'not thread-safe' functions.
> Moreover there is a windows equivalant _ftime.
>
> Problem with gettimeofday() is that we do not have an equivalant on Windows.
>
>
>
>   
>> axis2_date_time should support fractional seconds
>> -------------------------------------------------
>>
>>                 Key: AXIS2C-279
>>                 URL: http://issues.apache.org/jira/browse/AXIS2C-279
>>             Project: Axis2-C
>>          Issue Type: Improvement
>>          Components: util
>>    Affects Versions: Current (Nightly)
>>            Reporter: James Clark
>>            Priority: Minor
>>
>> The XML schema date time datatype supports fractional seconds.  The security specs suggest support for milliseconds.  I would suggest the interface support microseconds, which will ensure we can support milliseconds with no rounding problems. To do this, 
>> - add a get_microseconds method
>> - allow serialization to specify the seconds precision (desired number of digits after the decimal point -- 0, 1, 2, 3).
>> - make sure parsing handles fractional seconds
>> - the implementation can use gettimeofday() if available, which is a POSIX standard function
>>     
>
>   


[jira] Commented: (AXIS2C-279) axis2_date_time should support fractional seconds

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-279?page=comments#action_12434632 ] 
            
Samisa Abeysinghe commented on AXIS2C-279:
------------------------------------------

Can we use ftime for this? 
It is a POSIX standard function and is not in the list of 'not thread-safe' functions.
Moreover there is a windows equivalant _ftime.

Problem with gettimeofday() is that we do not have an equivalant on Windows.



> axis2_date_time should support fractional seconds
> -------------------------------------------------
>
>                 Key: AXIS2C-279
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-279
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>            Priority: Minor
>
> The XML schema date time datatype supports fractional seconds.  The security specs suggest support for milliseconds.  I would suggest the interface support microseconds, which will ensure we can support milliseconds with no rounding problems. To do this, 
> - add a get_microseconds method
> - allow serialization to specify the seconds precision (desired number of digits after the decimal point -- 0, 1, 2, 3).
> - make sure parsing handles fractional seconds
> - the implementation can use gettimeofday() if available, which is a POSIX standard function

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Closed: (AXIS2C-279) axis2_date_time should support fractional seconds

Posted by "Malinda Kaushalye Kapuruge (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Malinda Kaushalye Kapuruge closed AXIS2C-279.
---------------------------------------------


Closing issue

> axis2_date_time should support fractional seconds
> -------------------------------------------------
>
>                 Key: AXIS2C-279
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-279
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>         Assigned To: Malinda Kaushalye Kapuruge
>            Priority: Minor
>             Fix For: Current (Nightly)
>
>
> The XML schema date time datatype supports fractional seconds.  The security specs suggest support for milliseconds.  I would suggest the interface support microseconds, which will ensure we can support milliseconds with no rounding problems. To do this, 
> - add a get_microseconds method
> - allow serialization to specify the seconds precision (desired number of digits after the decimal point -- 0, 1, 2, 3).
> - make sure parsing handles fractional seconds
> - the implementation can use gettimeofday() if available, which is a POSIX standard function

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-279) axis2_date_time should support fractional seconds

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-279?page=all ]

Samisa Abeysinghe updated AXIS2C-279:
-------------------------------------

    Fix Version/s: 1.0.0
         Assignee: Malinda Kaushalye Kapuruge

> axis2_date_time should support fractional seconds
> -------------------------------------------------
>
>                 Key: AXIS2C-279
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-279
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>         Assigned To: Malinda Kaushalye Kapuruge
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> The XML schema date time datatype supports fractional seconds.  The security specs suggest support for milliseconds.  I would suggest the interface support microseconds, which will ensure we can support milliseconds with no rounding problems. To do this, 
> - add a get_microseconds method
> - allow serialization to specify the seconds precision (desired number of digits after the decimal point -- 0, 1, 2, 3).
> - make sure parsing handles fractional seconds
> - the implementation can use gettimeofday() if available, which is a POSIX standard function

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org