File: 2new-param.t

package info (click to toggle)
libdatetime-format-pg-perl 0.16001-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 248 kB
  • ctags: 141
  • sloc: perl: 1,832; makefile: 43
file content (12 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# $Id: /local/datetime/modules/DateTime-Format-Pg/trunk/t/2new-param.t 8428 2003-05-30T14:04:49.000000Z cfaerber  $
use Test::More tests => 2;
use DateTime::Format::Pg 0.02;

my $p_eu = DateTime::Format::Pg->new( 'european' => 1);
my $p_us = DateTime::Format::Pg->new( 'european' => 0);

$dt = $p_eu->parse_date('26-04-2003');
is($dt->ymd(), '2003-04-26');

$dt = $p_us->parse_date('04-26-2003');
is($dt->ymd(), '2003-04-26');