Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You could follow <a href="http://en.wikipedia.org/wiki/ISO_8601#Time_intervals" rel="nofollow">ISO 8601</a>, a PDF of the spec can be found <a href="http://dotat.at/tmp/ISO_8601-2004_E.pdf" rel="nofollow">here</a>. See section <code>4.4.3 Duration</code></p> <p>However, using the convention as lined out in this document looks fairly complicated to me, because according to this specification, you need to include context about when the time interval takes place: </p> <blockquote> <p>The duration of a calendar year, a calendar month, a calendar week or a calendar day depends on its position in the calendar. Therefore, the exact duration of a nominal duration can only be evaluated if the duration of the calendar years, calendar months, calendar weeks or calendar days used are known.</p> </blockquote> <p>If the actual moment at which the time span takes place is not relevant for your application, then maybe it would be good enough to forget about the year and month parts and just stick with the format <code>nnDTnnHnnMnnS</code>. That should not be too hard to achieve using the standard <code>TimeSpan</code> methods.</p> <p>Update: Reading a bit further, this standard does not seem to be applicable to your problem after all:</p> <blockquote> <p>Duration is used as a component in representations of time intervals and recurring time intervals, representation of duration as such is not facilitated by this International Standard.</p> </blockquote> <p>I will just leave the answer here to avoid anybody else walking into this dead end like I did, or if you think 'sort of following a standard' is good enough...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload