Subject: | inconsistent epoch output |
The epoch method's output is inconsistent. Sometiems we get a string, others we get an integer. It depends on how the object gets instantiated:
$ perl -e'use Class::Date; use Data::Dumper; my $a=Class::Date->new(1433797200)->to_tz("EEST")->epoch; print Dumper $a'
$VAR1 = '1433797200';
$ perl -e'use Class::Date; use Data::Dumper; my $a=Class::Date->new([2015, 6, 9])->epoch; print Dumper $a'
$VAR1 = 1433797200;
perl -e'use Class::Date; use Data::Dumper; my $a=Class::Date->new([2015, 6, 9])->to_tz("EEST")->epoch; print Dumper $a'
$VAR1 = '1433797200';