Releases: indieweb/date-formatter-php
Releases · indieweb/date-formatter-php
Release list
Adds `formatTime()` function
Support custom class names in output HTML
Now you can customize the class names that are used in the HTML output:
echo IndieWeb\DateFormatter::format('2013-10-08T07:00:00-0700', '2013-10-08T08:50:00-0700', 'dt-departure', 'dt-arrival');<time class="dt-departure" datetime="2013-10-08T07:00:00-07:00">
October 8, 2013 from 7:00am
</time>
to
<time class="dt-arrival" datetime="2013-10-08T8:50:00-07:00">
8:50am (-0700)
</time>Support DateTime objects as input
Format function now accepts DateTime objects as input in addition to strings.
0.1.5 - Show timezone when start and end timezone are different
Shows the timezone when start and end timezone are different