Acme-CPANModules-FormattingDate

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    clear picture of how wide each component (and the whole string) will be.

    There are some modules you can use to format dates using this style.
    First of all there's Date::Formatter. I find its API a little bit
    annoying, from the verbose date component key names and inconsistent
    usage of plurals, to having to use a separate method to "create the
    formatter" first.

    PHP

    PHP decided to invent its own date template format. Its date() function
    accepts template string in which you specify single letter conversions
    like "Y' (for 4-digit year),"y"(2-digit year), and so on. Some of the
    letters mean the same like their counterpart in strftime, but some are
    different (examples:"i", "a","M`, and so on). The use of single letter
    means it's more concise, but the format becomes unsuitable if you want
    to put other stuffs (like some string alphabetical literals) in addition
    to date components.

    In Perl, you can use the PHP::DateTime to format dates using PHP date()
    format.

lib/Acme/CPANModules/FormattingDate.pm  view on Meta::CPAN

to use for people as it gives a clear picture of how wide each component (and
the whole string) will be.

There are some modules you can use to format dates using this style. First of
all there's <pm:Date::Formatter>. I find its API a little bit annoying, from the
verbose date component key names and inconsistent usage of plurals, to having to
use a separate method to "create the formatter" first.

**PHP**

PHP decided to invent its own date template format. Its `date()` function
accepts template string in which you specify single letter conversions like `Y'
(for 4-digit year), `y` (2-digit year), and so on. Some of the letters mean the
same like their counterpart in strftime, but some are different (examples: `i`,
`a`, `M`, and so on). The use of single letter means it's more concise, but the
format becomes unsuitable if you want to put other stuffs (like some string
alphabetical literals) in addition to date components.

In Perl, you can use the <pm:PHP::DateTime> to format dates using PHP `date()`
format.

lib/Acme/CPANModules/FormattingDate.pm  view on Meta::CPAN

to use for people as it gives a clear picture of how wide each component (and
the whole string) will be.

There are some modules you can use to format dates using this style. First of
all there's L<Date::Formatter>. I find its API a little bit annoying, from the
verbose date component key names and inconsistent usage of plurals, to having to
use a separate method to "create the formatter" first.

B<PHP>

PHP decided to invent its own date template format. Its C<date()> function
accepts template string in which you specify single letter conversions like C<Y'
(for 4-digit year),>yC<(2-digit year), and so on. Some of the letters mean the
same like their counterpart in strftime, but some are different (examples:>iC<,
>aC<,>M`, and so on). The use of single letter means it's more concise, but the
format becomes unsuitable if you want to put other stuffs (like some string
alphabetical literals) in addition to date components.

In Perl, you can use the L<PHP::DateTime> to format dates using PHP C<date()>
format.



( run in 0.918 second using v1.01-cache-2.11-cpan-4505f990765 )