OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ws-calendar message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (WSCALENDAR-342) Is there astandard vlue for durations of Month and Year?



    [ http://tools.oasis-open.org/issues/browse/WSCALENDAR-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25283#action_25283 ] 

Toby Considine commented on WSCALENDAR-342:
-------------------------------------------

ISO8601 specifies that durations begin with P
It specifies Years (Y), Months (M), Weeks (W), and Days (D).
If after a T (time) then it specifies time - Hours (H), Minutes (M), Weeks (W), and Days (D)

The examples above should be PT6S and P2H. The P1W is correct.

Just as D handles Leap Days, while must specify 23 and 25 instead of 24, so the duration M varies by the month, in ways that 4W or 30D do not.

[PnnW] or [PnnYnnMnnDTnnHnnMnnS]

http://dotat.at/tmp/ISO_8601-2004_E.pdf Section 4.4.3, Page 20

> Is there a standard vlue for durations of Month and Year?
> ---------------------------------------------------------
>
>                 Key: WSCALENDAR-342
>                 URL: http://tools.oasis-open.org/issues/browse/WSCALENDAR-342
>             Project: OASIS Web Services Calendar (WS-Calendar) TC
>          Issue Type: Bug
>          Components: spec
>    Affects Versions: pr02
>            Reporter: Edward Cazalet 
>            Assignee: Toby Considine
>
> Duration value can be specified as P6S (6 seconds) or P2H (2 hours) of P1W ( 1 week) ,  for example.
> ,
> I cannot find a specifiction for durations of months or years.  These are durations often used for transactions of energy and other commodities.
> Is there a standard code for Month and for Year?

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

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]