Acme-CPANModules-FormattingDate

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "File::Spec" : "0",
            "IO::Handle" : "0",
            "IPC::Open3" : "0",
            "Test::More" : "0"
         }
      },
      "x_lists" : {
         "x_lists" : {
            "Date::Formatter" : "0",
            "Date::strftimeq" : "0",
            "PHP::DateTime" : "0"
         }
      },
      "x_mentions" : {
         "x_mentions" : {
            "Date::Formatter" : "0",
            "Date::strftimeq" : "0",
            "PHP::DateTime" : "0"
         }
      }
   },
   "provides" : {
      "Acme::CPANModules::FormattingDate" : {
         "file" : "lib/Acme/CPANModules/FormattingDate.pm",
         "version" : "0.002"
      }
   },
   "release_status" : "stable",

README  view on Meta::CPAN


DESCRIPTION
    Overview

    Date formatting modules can be categorized by their expected input
    format and the formatting styles.

    Input format: Some modules accept date in the form of Unix epoch (an
    integer), or a list of integer produced by running the epoch through the
    builtin gmtime() or localtime() function. Some others might expect the
    date as DateTime object. For formatting style: there's strftime in the
    POSIX core module, and then there's the others.

    This list is organized using the latter criteria (formatting style).

    strftime (and variants)

    The POSIX module provides the strftime() routine which lets you format
    using a template string containing sprintf-style conversions like %Y
    (for 4-digit year), %m (2-digit month number from 1-12), and so on.
    There's also Date::strftimeq which provides an extension to this.

README  view on Meta::CPAN


    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.

ACME::CPANMODULES ENTRIES
    Date::strftimeq
        Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>

    Date::Formatter
        Author: BIANCHINI <https://metacpan.org/author/BIANCHINI>

    PHP::DateTime
        Author: BLUEFEET <https://metacpan.org/author/BLUEFEET>

FAQ
  What is an Acme::CPANModules::* module?
    An Acme::CPANModules::* module, like this module, contains just a list
    of module names that share a common characteristics. It is a way to
    categorize modules and document CPAN. See Acme::CPANModules for more
    details.

  What are ways to use this Acme::CPANModules module?

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

our $VERSION = '0.002'; # VERSION

my $text = <<'_';
**Overview**

Date formatting modules can be categorized by their expected input format and
the formatting styles.

Input format: Some modules accept date in the form of Unix epoch (an integer),
or a list of integer produced by running the epoch through the builtin gmtime()
or localtime() function. Some others might expect the date as <pm:DateTime>
object. For formatting style: there's strftime in the <pm:POSIX> core module,
and then there's the others.

This list is organized using the latter criteria (formatting style).

**strftime (and variants)**

The <pm:POSIX> module provides the `strftime()` routine which lets you format
using a template string containing sprintf-style conversions like `%Y` (for
4-digit year), `%m` (2-digit month number from 1-12), and so on. There's also

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

**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.

_

our $LIST = {
    summary => 'List of various methods to format dates',
    description => $text,
    tags => ['task'],
    entries => [
        map { +{module=>$_} }

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


=head1 DESCRIPTION

B<Overview>

Date formatting modules can be categorized by their expected input format and
the formatting styles.

Input format: Some modules accept date in the form of Unix epoch (an integer),
or a list of integer produced by running the epoch through the builtin gmtime()
or localtime() function. Some others might expect the date as L<DateTime>
object. For formatting style: there's strftime in the L<POSIX> core module,
and then there's the others.

This list is organized using the latter criteria (formatting style).

B<strftime (and variants)>

The L<POSIX> module provides the C<strftime()> routine which lets you format
using a template string containing sprintf-style conversions like C<%Y> (for
4-digit year), C<%m> (2-digit month number from 1-12), and so on. There's also

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

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.

=head1 ACME::CPANMODULES ENTRIES

=over

=item L<Date::strftimeq>

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>

=item L<Date::Formatter>

Author: L<BIANCHINI|https://metacpan.org/author/BIANCHINI>

=item L<PHP::DateTime>

Author: L<BLUEFEET|https://metacpan.org/author/BLUEFEET>

=back

=head1 FAQ

=head2 What is an Acme::CPANModules::* module?

An Acme::CPANModules::* module, like this module, contains just a list of module



( run in 0.280 second using v1.01-cache-2.11-cpan-05444aca049 )