Home

P2DT3H

P2DT3H is an ISO 8601 duration notation representing a time interval of two days and three hours. The format starts with the letter P to indicate a duration, followed by D for days (2D). A T separates any date-based components from time-based components, and the time portion includes H for hours (3H). The example contains no minutes or seconds, but additional components such as M (minutes) or S (seconds) could be appended after the H.

In total, P2DT3H equals 51 hours, 3060 minutes, or 183,600 seconds. It is equivalently expressed as PT51H

Applications and compatibility: P2DT3H is widely used in data interchange and scheduling to convey durations in

Notes on use: The canonical order for a duration is Y, M, D before the time separator

in
cases
where
a
purely
time-based
representation
is
preferred,
since
that
form
omits
the
day
component
while
preserving
the
same
total
duration.
a
machine-readable
way.
It
appears
in
XML
schemas,
API
payloads,
calendar
data,
and
other
systems
that
implement
ISO
8601
duration
semantics.
Most
modern
programming
languages
and
libraries
that
support
ISO
8601
durations
can
parse
P2DT3H
or
convert
it
to
native
duration
types,
such
as
seconds
or
hours,
depending
on
the
language.
T,
and
H,
M,
S
after
T.
If
there
are
no
time
components,
the
T
and
time
portion
can
be
omitted;
if
there
are
no
date
components,
the
duration
may
begin
with
PT.
This
notation
avoids
ambiguity
when
communicating
lengths
of
time
across
different
regions
and
systems.