Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wishlist: Keep minute and seconds information on time_unit == HOUR #4

@reneeb

Description

@reneeb

When I do

use Time::List;
use Time::List::Constant;

my $obj = Time::List->new(
input_strftime_form => '%Y-%m-%d %H:%M:%S',
output_strftime_form => '%d.%m.%Y %H:%M:%S',
time_unit => HOUR,
output_type => ARRAY,
);

my $start = '2013-12-31 23:05:13';
my $stop = '2014-01-01 03:04:33';

print join "\n", @{ $obj->get_list( $start, $stop ) };

I would expect to get

01.01.2014 00:05:13
01.01.2014 01:05:13
01.01.2014 02:05:13

instead of

01.01.2014 00:00:00
01.01.2014 01:00:00
01.01.2014 02:00:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions