ISO 8601:2000(E)
22
© ISO 2000 ­ All rights reserved
5.5.4.2.2
Alternative format
If, by agreement, a complete representation of a time-interval through its duration only, with duration in the alternative
format, is used, the expression shall be in accordance with 5.5.2 and use a complete duration representation as
defined in 5.5.3.2.
Basic format:
PYYYYMMDDThhmmss
EXAMPLE P00021015T103020
Extended format:
PYYYY-MM-DDThh:mm:ss
EXAMPLE P0002-10-15T10:30:20
A time-interval with a duration of two years, 10 months, 15 days, 10 hours, 30 minutes and 20 seconds.
5.5.4.3
Representation of time-interval identified by its start and its duration
When the application identifies the need for a complete representation of a time-interval identified by its start and its
duration, it shall use an expression in accordance with 5.5.2, combining any complete date and time of the day
representation as defined in 5.4.1, with any complete representation of duration as defined in 5.5.3, provided that the
resulting expression is either consistently in basic format or consistently in extended format.
Basic format:
YYYYMMDDThhmmss/PnYnMnDTnHnMnS
YYYYMMDDThhmmss/PYYYYMMDDThhmmss
EXAMPLE
19850412T232050/P1Y2M15DT12H30M0S
19850412T232050/P00010215T123000
Extended format:
YYYY-MM-DDThh:mm:ss/PnYnMnDTnHnMnS
YYYY-MM-DDThh:mm:ss/PYYYY-MM-DDThh:mm:ss
EXAMPLE
1985-04-12T23:20:50/P1Y2M15DT12H30M0S
1985-04-12T23:20:50/P0001-02-15T12:30:00
A time-interval of one year, two months, 15 days, 12 hours and 30 minutes, beginning on 12 April 1985 at 20
minutes and 50 seconds past 23 hours local time.
5.5.4.4
Representation of time-interval identified by its duration and its end
When the application identifies the need for a complete representation of a time-interval identified by its duration and
its end, it shall use an expression in accordance with 5.5.2, combining any complete representation of the duration as
defined in 5.5.3 with any complete representation of date and time of the day as defined in 5.4.1, provided that the
resulting expression is either consistently in basic format or consistently in extended format.
Basic format:
PnYnMnDTnHnMnS/YYYYMMDDThhmmss
PYYYYMMDDThhmmss/YYYYMMDDThhmmss
EXAMPLE
P1Y2M15DT12H30M0S/19850412T232050
P00010215T123000/19850412T232050
Extended format:
PnYnMnDTnHnMnS/YYYY-MM-DDThh:mm:ss
PYYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
EXAMPLE
P1Y2M15DT12H30M0S/1985-04-12T23:20:50
P0001-02-15T12:30:00/1985-04-12T23:20:50
A time-interval of time of one year, two months, 15 days and 12 hours and 30 minutes, ending on 12 April 1985 at
20 minutes and 50 seconds past 23 hours local time .