App-dateseq-id

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    *   exclude_dow => *date::dow_nums*

        Do not show dates with these day-of-weeks.

    *   exclude_month => *date::month_nums*

        Do not show dates with these month numbers.

    *   format_class => *perl::modname*

        Use a DateTime::Format::* class for formatting.

        By default, DateTime::Format::Strptime is used with pattern set from
        the <strftime> option.

    *   format_class_attrs => *hash*

        Arguments to pass to constructor of DateTime::Format::* class.

    *   from => *date*

        Starting date.

    *   header => *str*

        Add a header row.

    *   holiday => *bool*

README  view on Meta::CPAN


        Decrement instead of increment.

    *   strftime => *str*

        strftime() format for each date.

        Default is "%Y-%m-%d", unless when hour/minute/second is specified,
        then it is "%Y-%m-%dT%H:%M:%S".

        "dateseq" actually uses DateTimeX::strftimeq, so you can embed Perl
        code for flexibility. For example:

         % dateseq 2019-11-19 2019-11-25 -f '%Y-%m-%d%( $_->day_of_week == 7 ? "su" : "" )q'

        will print something like:

         2019-11-19
         2019-11-20
         2019-11-21
         2019-11-22

lib/App/dateseq/id.pm  view on Meta::CPAN

=item * B<exclude_dow> => I<date::dow_nums>

Do not show dates with these day-of-weeks.

=item * B<exclude_month> => I<date::month_nums>

Do not show dates with these month numbers.

=item * B<format_class> => I<perl::modname>

Use a DateTime::Format::* class for formatting.

By default, L<DateTime::Format::Strptime> is used with pattern set from the
<strftime> option.

=item * B<format_class_attrs> => I<hash>

Arguments to pass to constructor of DateTime::Format::* class.

=item * B<from> => I<date>

Starting date.

=item * B<header> => I<str>

Add a header row.

=item * B<holiday> => I<bool>

lib/App/dateseq/id.pm  view on Meta::CPAN


Decrement instead of increment.

=item * B<strftime> => I<str>

strftime() format for each date.

Default is C<%Y-%m-%d>, unless when hour/minute/second is specified, then it is
C<%Y-%m-%dT%H:%M:%S>.

C<dateseq> actually uses L<DateTimeX::strftimeq>, so you can embed Perl code
for flexibility. For example:

 % dateseq 2019-11-19 2019-11-25 -f '%Y-%m-%d%( $_->day_of_week == 7 ? "su" : "" )q'

will print something like:

 2019-11-19
 2019-11-20
 2019-11-21
 2019-11-22

script/dateseq-id  view on Meta::CPAN

Can be specified multiple times.

=back

=head2 Formatting options

=over

=item B<--format-class-attrs-json>=I<s>

Arguments to pass to constructor of DateTime::Format::* class (JSON-encoded).

See C<--format-class-attrs>.

=item B<--format-class-attrs>=I<s>

Arguments to pass to constructor of DateTime::Format::* class.

=item B<--format-class>=I<s>

Use a DateTime::Format::* class for formatting.

By default, <pm:DateTime::Format::Strptime> is used with pattern set from the
<strftime> option.


=item B<--strftime>=I<s>, B<-f>

strftime() format for each date.

Default is `%Y-%m-%d`, unless when hour/minute/second is specified, then it is
`%Y-%m-%dT%H:%M:%S`.

`dateseq` actually uses <pm:DateTimeX::strftimeq>, so you can embed Perl code
for flexibility. For example:

    % dateseq 2019-11-19 2019-11-25 -f '%Y-%m-%d%( $_->day_of_week == 7 ? "su" : "" )q'

will print something like:

    2019-11-19
    2019-11-20
    2019-11-21
    2019-11-22



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